Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.49 KB

learning.md

File metadata and controls

19 lines (17 loc) · 1.49 KB

Some points to remember

  • whenever you see search problem, always try to use search alogorithms like binary , merge , quick ..
  • nums[i] == nums[i-1] is to prevent checking duplicate again. (This seems to be a good pattern which has been seen in other questions as well).
  • Try to use two way pointer
  • If you have to make patterns then you need to use the recursive calls
  • Sliding window is used when we want consecutive sequence
  • for all combinations, use custom method with backtracking

Good Questions :-

  1. Shuffle integers
  2. Optimal Strategy For A Game
  3. Replace O's with X's
  4. Find all possible palindromic partitions of a String
  5. 1769. Minimum Number of Operations to Move All Balls to Each Box
  6. 678. Valid Parenthesis String
  7. 20. Valid Parentheses
  8. 409. Longest Palindrome
  9. Fenwick tree 1409. Queries on a Permutation With Key