Skip to content

Files

Latest commit

49ac05f · Jun 26, 2022

History

History
192 lines (100 loc) · 7.37 KB

readme.md

File metadata and controls

192 lines (100 loc) · 7.37 KB

Find Set Map

leetcode 451.Sort Characters By Frequency

leetcode 1.Two Sum

leetcode 146.LRU Cache

leetcode 454.Four Sum ii

leetcode 49.Group Anagrams

leetcode 447.Number Of Boomeranges

** leetcode 49.Max Points On A Line **

Two points

leetcode 167.Two Sum 2

leetcode 15.Three Sum

leetcode 18.Four Sum

leetcode 16.Three Sum Closest

Sliding window

209

3

438

76

leetcode 220.Contains Duplicate iii

Set

leetcode 217.Contains Duplicate leetcode 219.Contains Duplicate ii

Linked List

prev = null, cur, next

leetcode 206.Reverse Linked List

leetcode 92.Reverse Linked List ii

leetcode 83.Remove Duplicates From Sorted List

leetcode 86.Partition List

leetcode 328.Odd Even Linked List

leetcode 2.Add Two Numbers

leetcode 445.Add Two Numbers II

leetcode 203.Remove Linked List Elements

leetcode 82.Remove Linked List Elements ii

leetcode 21.Merge Two Sorted List

leetcode 24.Swap Nodes In Pairs

leetcode 25.Reverse Nodes In K Groups ** HARD **

leetcode 147.Insertion Sort List

148 TODO

Linked List - Modify value

leetcode 237.Delete Node In a Linked List

Linked List - Two Pointers

leetcode 19.Remove nth node from end of list

leetcode 61.Rotate List

leetcode 143.Reorder List

leetcode 234.Palindrome Linked List

Stack and Queue

Stack

20

leetcode 150.Evaluate Reverse Polish Notation

leetcode 71.Simplify Path

Recur and Stack

leetcode 144.Binary Tree Preorder Traversal

leetcode 144.Iterator - Binary Tree Preorder Traversal

leetcode 94.Binary Tree Inorder Traversal

leetcode 94.Iterator - Bianry Tree Inorder Travesal

leetcode 145.Binary Tree Postorder Traversal

leetcode 145.Iterator - Binary Tree Postorder Travesal

leetcode 341.Flatten Nested List Iterator

Queue - Binary Tree Level Order

leetcode 102.Binary Tree Level Order Travesal

leetcode 107.Binary Tree Level Order Travesal II

leetcode 103.Binary Tree Zigzan Level Order Travesal

leetcode 199.Binary Tree Right Side View

BFS - Graph

leetcode 279.Perfect Squares

leetocd 127.Word Ladder

todo 126

Priority Queue

todo Max Heap

347

23

O(nlog(k)) O(nlog(n-k))

Binary Tree and Recur

leetcode 104.Maximun Depth Of Binary Tree

leetcode 111.Minimun Depth Of Binary Tree

leetcode 226.Invert Binary Tree

leetcode 100.Same Tree

leetcode 101.Symmetric Tree

leetcode 101.Symmetric Tree - Iteratively

leetcode 222.Count Complete Tree Nodes

TODO: 222 - complete tree

leetcode 110.Balanced Binary Tree

TODO: 110 - Another solution

Binary Tree Leaf Node

leetcode 112.Path Sum

leetcode 111.Minimun Depth Of Binary Tree

leetcode 404.Sum of Left Leaves

leetcode 257.Binary Tree Paths

leetcode 113.Path Sum ii

leetcode 129.Sum Root To Leaf Numbers

leetcode 437.Path Sum III

Binary Search Tree

leetcode 235.Lowest Common Ancestor Of A Binary Search Tree

236

leetcode 98.Validate Binary Search Tree

leetcode 450.Delete Node In a BST

leetcode 108.Convert Sorted Array To Binary Search Tree

leetcode 230.Kth Smallest Element in a BST