Skip to content

Latest commit

 

History

History
120 lines (105 loc) · 5.59 KB

leetcode.md

File metadata and controls

120 lines (105 loc) · 5.59 KB

Leetcode compact list

  • I use LC time tracking to keep track of how many times I solves a question and how long I spent each time. Once I finish non-trivial medium LC questions 3 times, I have absolutely no issues solving them in actual interviews (sometimes within 8-10 minutes). It makes a big difference. A better way is to use LeetPlug chrome extension here

  • This Leetcode post combines 36 tips and tricks in improving Leetcode problem solving skills.

Leetcode readiness

Two Pointers

  • 75 Sort Colors
  • 80 Remove Duplicates from Sorted Array II
  • 88 Merge Sorted Array
  • 457 Circular Array Loop
  • 713 Subarray Product Less Than K
  • 845 Longest Mountain in Array
  • 904 Fruit into baskets
  • 925 Long Pressed name
  • 986 Interval list intersections

Binary Search

Hashmap

  • 463 Island Perimeter
  • 535 Encode and decode TinyURL
  • 575 Distribute Candies
  • 739 Daily Temperatures
  • 748 Shortest Completing Word
  • 811 Subdomain visit count
  • 884 Uncommon words from Twos sentences
  • 953 Verifying an Alien Dictionary
  • 961 N-Repeated Element in Size 2N Array
  • 1160 Find words that can be formed by characters
  • 1078 Occurences after bigram

Stack

  • 496 Next Greater Element I
  • 682 Baseball Game
  • 856 Score of Parentheses
  • 946 Validate Stack Sequences
  • 1190 Reverse Substrings Between Each Pair of Parentheses
  • 1209 Remove All Adjacent Duplicates in String II

String

  • 468 Validate IP Address
  • 522 Longest Uncommon Subsequence II
  • 539 Minimum Time Difference
  • 553 Optimal Division
  • 791 Custom Sort String
  • 833 Find and replace in String
  • 835 Image Overlap
  • 893 Groups of Special-Equivalent Strings
  • 1156 Swap For Longest Repeated Character Substring

Sliding Window

  • 424 Longest Repeating Character Replacement
  • 1040 Moving Stones Until Consecutive II

Tree

  • 101 Symmetric Tree
  • 108 Convert Sorted Array to Binary Search Tree
  • 226 Invert Binary Tree
  • 538 Convert BST to Greater Tree
  • 543 Diameter of a Binary Tree
  • 637 Average of Levels in Binary Tree
  • 654 Maximum Binary Tree
  • 669 Trim a Binary Search Tree
  • 589 N-ary Tree Preorder Traversal
  • 894 All Possible Full Binary Trees
  • 979 Distribute Coins in Binary Tree
  • 993 Cousins in a Binary Tree
  • 1022 Sum of Root To Leaf Binary Numbers
  • 1104 Path In Zigzag Labelled Binary Tree
  • 1110 Delete Nodes And Return Forest
  • Ser/deser tree
  • Distributed coins in tree

Recursive/Graph/DP

LinkedList

  • Contrary to popular belief, no body really asked LinkedList questions during the interview. There is one exception where you need to use LinkedList to implement LRU. Copy list with random pointer

Design

Notes

  • If you're interested to learn more about paid ML system design course with more examples, click here.
  • If you find this helpful, you can Sponsor this project. It's cool if you don't.