167. Two Sum

167. Two Sum

Problem Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two

Read More

75. Sort Colors

75. Sort Colors

Problem Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will u

Read More

283. Move Zeros

283. Move Zeros

Problem Given an array nums, write a func to move all 0 s to the end of it while keeping the relative order of the non-zero elements Must do this in-place without making a copy of array Minimize the

Read More