Grind 120

1.Two Sum: HashMap One Pass

post-thumbnail

2.Valid Parentheses: Stack*

post-thumbnail

3.Merge Two Sorted Lists: Linked List

post-thumbnail

4.Best Time to Buy and Sell Stock: Array One Pass using Plot*

post-thumbnail

5.Valid Palindrome: Traversing from front and back simultaneously

post-thumbnail

6.Invert Binary Tree: Recursive Solution

post-thumbnail

7.Valid Anagram: Keeping count with constant access time

post-thumbnail

8.Binary Search: O(NlogN)

post-thumbnail

9.Flood Fill: Depth First Search*

post-thumbnail

10.Maximum Subarray: Dynamic Programming**

post-thumbnail

11.Lowest Common Ancestor: BST*

post-thumbnail

12.Linked List Cycle: HashSet of ListNodes

post-thumbnail

13.Balanced Binary Tree: Tree Height

post-thumbnail

14.Ransom Note: HashMap

post-thumbnail

15.Longest Palindrome: ans%2==1

post-thumbnail

16.Climbing Stairs: DP

post-thumbnail

17.Middle of Linked List: Helper Method

post-thumbnail

18.Majority Element: HashMap

post-thumbnail

19.Maximum Depth of Binary Tree: Recursion

post-thumbnail

20.Diameter of Binary Tree: Recursion (DFS)**

post-thumbnail

21.Add Binary: Bit Manipulation, Equating List Size

post-thumbnail

22.Min Stack: Using Two Stacks to Update MinValue

post-thumbnail

23.Contains Duplicate: HashMap, HashSet

post-thumbnail

24.Meeting Rooms: Priority Queue Not 2D Array

post-thumbnail

25.Same Tree: Recursive AND Return

post-thumbnail

26.First Bad Version: Binary Search and Return Low

post-thumbnail

27.Roman to Integer: Position Logic

post-thumbnail

28.Backspace Compare: Character ArrayList

post-thumbnail

29.K Closest Points to Origin: Priority Queue

post-thumbnail

30.3 Sum: Three Tracker in One Array

post-thumbnail

31.Insert Interval: Finding Union

post-thumbnail

32.Longest Substring without Repeating Characters: HashMap

post-thumbnail

33.Binary Tree Level-Order Traversal: Using level as Index

post-thumbnail

34.Clone Graph: DFS 타고타고 복사본

post-thumbnail

35.Coin Change: Recursive DP

post-thumbnail

36.Validate BST: Root.Val as Min and Max Threshold

post-thumbnail

37.Implement Queue Using Stack

post-thumbnail

38.Reverse Linked List

post-thumbnail