LeetCode 15.

less than 1 minute read

```java class Solution { public List<List> threeSum(int[] nums) { Arrays.sort(nums); //nlogn List<List> result = new ArrayLis...

LeetCode 11.

1 minute read

Question ``` Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specifi...

LeetCode 167.

1 minute read

Question ``` Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specifi...

LeetCode 28.

less than 1 minute read

Complexity Time complexity: O(n)

LeetCode 6.

less than 1 minute read

Complexity Time complexity: O(n)