Data Structure and Algorithms | 2019-12-05 Leetcode 54. Spiral Matrix Question Give a m * n matrix, return the spiral order of all elements. Simila ...
Data Structure and Algorithms | 2019-12-04 Leetcode 53. Maximum Subarray Question Find a contiguous subarray in an array that has the largest sum. Similar Questions Easy ...
Data Structure and Algorithms | 2019-12-03 Leetcode 48. Rotate Image Question Rotate a 2D matrix by 90 degrees (clockwise). The rotation should be in-place (no extra s ...
Data Structure and Algorithms | 2019-11-27 Leetcode 40. Combination Sum II Question Similar to Question Leetcode 39. Combination Sum. Only this time the same number in the a ...
Data Structure and Algorithms | 2019-11-25 Leetcode 39. Combination Sum Question Given an array and a target value, find all unique combination of numbers that add up to ...
Data Structure and Algorithms | 2019-11-24 Leetcode 34. Find First and Last Position of Element in Sorted Array Question Find the first and last location of target value in a sorted array. Algorithm need to run ...
Data Structure and Algorithms | 2019-11-23 Leetcode 33. Search in Rotated Sorted Array Question The original array is sorted, but rotated at some pivot index. We need to find the target ...
Data Structure and Algorithms | 2019-11-19 Leetcode 31: Next Permutation Question This problem is a bit hard to understand. Suppose we have number 123, then the permutati ...
Data Structure and Algorithms | 2019-11-18 Leetcode 18: 4Sum Question Similar to Question 15: 3Sum. This time we want to find all 4 numbers that add up to the ...
Data Structure and Algorithms | 2019-11-16 Leetcode 16: 3Sum Closest Question Similar to Question 15: 3Sum. This time we want to find the 3 sum that is closest to the ...