Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

1. Two Sum

https://leetcode.com/problems/two-sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

2. Maximum Subarray

https://leetcode.com/problems/maximum-subarray/

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

3. Maximum Product Subarray

https://leetcode.com/problems/maximum-product-subarray/

Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.

4. Valid Parentheses

https://leetcode.com/problems/valid-parentheses/

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

5. Best Time to Buy and Sell Stock

https://leetcode.com/problems/best-time-to-buy-and-sell-stock/

Say you have an array for which the ith element is the price of a given stock on day i.

If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of the stock), design an algorithm to find the maximum profit.

6. House Robber

https://leetcode.com/problems/house-robber/

Given a list of non-negative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police.

7. Range Sum of BST

https://leetcode.com/problems/range-sum-of-bst/

8. LowestCommonAncestor

https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/

9. LCAofBST

https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/

10. Merge2BinaryTrees

https://leetcode.com/problems/merge-two-binary-trees/

11. FlattenTree

https://leetcode.com/problems/flatten-binary-tree-to-linked-list/

12. FlattenMultilevelLinkedList

https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/

13. SearchInBST

https://leetcode.com/problems/search-in-a-binary-search-tree/

14. GasStations

https://leetcode.com/problems/gas-station/

15. IsSubSequence

https://leetcode.com/problems/is-subsequence/

16. BinaryWatch

https://leetcode.com/problems/binary-watch/

17. LetterCasePermutations

https://leetcode.com/problems/letter-case-permutation/

18. Remove Element

https://leetcode.com/problems/remove-element

19. Remove Duplicates from Sorted Array

https://leetcode.com/problems/remove-duplicates-from-sorted-array/

20. N Queens

https://leetcode.com/problems/n-queens/

21. Replace Elements with Greatest Element on Right Side

https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side/

**22. **