Skip to content
zagfoxPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Leetcode problems

Array

Leetcode 1. Two Sum
Leetcode 15. 3Sum
Leetcode 36. Valid Sudoku
Leetcode 42. Trapping Rain Water
Leetcode 55. Jump Game
Leetcode 56. Merge Intervals
Leetcode 57. Insert Interval
Leetcode 75. Sort Colors
Leetcode 88. Merge Sorted Array
Leetcode 121. Best Time to Buy and Sell Stock
Leetcode 122. Best Time to Buy and Sell Stock II
Leetcode 169: Majority Element
Leetcode 189. Rotate Array
Leetcode 238. Product of Array Except Self
Leetcode 283. Move Zeroes
Leetcode 438. Find All Anagrams in a String
Leetcode 746. Min Cost Climbing Stairs
Leetcode 1395. Count Number of Teams
Leetcode 2191. Sort the Jumbled Numbers
Leetcode 2952. Minimum Number of Coins to be Added
Leetcode 3016. Minimum Number of Pushes to Type Word II

String

Leetcode 3. Longest Substring Without Repeating Characters
Leetcode 5. Longest Palindromic Substring
Leetcode 8. String to Integer (atoi)
Leetcode 49. Group Anagrams
Leetcode 67. Add Binary
Leetcode 125. Valid Palindrome
Leetcode 165. Compare Version Numbers
Leetcode 408. Valid Word Abbreviation
Leetcode 443. String Compression
Leetcode 680. Valid Palindrome II
Leetcode 767. Reorganize String
Leetcode 1249. Minimum Remove to Make Valid Parentheses

Regular expression

Leetcode 10. Regular Expression Matching

Linked List

Leetcode 2. Add Two Numbers
Leetcode 23. Merge k Sorted Lists
Leetcode 138. Copy List with Random Pointer
Leetcode 206. Reverse Linked List

HashMap

Leetcode 217: Contains Duplicate
Leetcode 242. Valid Anagram
Leetcode 383. Ransom Note
Leetcode 409. Longest Palindrome
Leetcode 981. Time Based Key-Value Store

Heap

Leetcode 347. Top K Frequent Elements
Leetcode 973. K Closest Points to Origin

Stack

Leetcode 150. Evaluate Reverse Polish Notation
Leetcode 155. Min Stack
Leetcode 232. Implement Queue using Stacks
Leetcode 503. Next Greater Element II

Events handling

Covid Infection

Binary tree

Leetcode 98. Validate Binary Search Tree
Leetcode 102. Binary Tree Level Order Traversal
Leetcode 104. Maximum Depth of Binary Tree
Leetcode 110. Balanced Binary Tree
Leetcode 226. Invert Binary Tree
Leetcode 230. Kth Smallest Element in a BST
Leetcode 235: Lowest Common Ancestor of a Binary Search Tree
Leetcode 236. Lowest Common Ancestor of a Binary Tree
Leetcode 314. Binary Tree Vertical Order Traversal
Leetcode 543: Diameter of Binary Tree
Leetcode 662. Maximum Width of Binary Tree
Leetcode 1110. Delete Nodes And Return Forest
Leetcode 1650. Lowest Common Ancestor of a Binary Tree III

Matrix

Leetcode 54. Spiral Matrix

Matrix DFS / BFS

Leetcode 79. Word Search
Leetcode 200. Number of Islands
Leetcode 542. 01 Matrix
Leetcode 733: Flood Fill
Leetcode 994. Rotting Oranges
Leetcode 1091. Shortest Path in Binary Matrix

Tree & Graph

Leetcode 133. Clone Graph
Leetcode 207. Course Schedule
Leetcode 208. Implement Trie (Prefix Tree)
Leetcode 210. Course Schedule II
Leetcode 310. Minimum Height Trees

Algorithm

Greedy

Leetcode 621. Task Scheduler

Divide and Conquer

Leetcode 50. Pow(x, n)
Leetcode 215. Kth Largest Element in an Array

Recursion

Leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal
Leetcode 339. Nested List Weight Sum
Leetcode 889. Construct Binary Tree from Preorder and Postorder Traversal

Back tracking

Leetcode 17. Letter Combinations of a Phone Number
Leetcode 39. Combination Sum
Leetcode 46. Permutations
Leetcode 78. Subsets

Dynamic programing

Leetcode 53. Maximum Subarray
Leetcode 62. Unique Paths
Leetcode 70: Climbing Stairs
Leetcode 139. Word Break
Leetcode 322. Coin Change
Leetcode 416. Partition Equal Subset Sum
Leetcode 1105. Filling Bookcase Shelves

Binary Search

Leetcode 4. Median of Two Sorted Arrays
Leetcode 33. Search in Rotated Sorted Array
Leetcode 199. Binary Tree Right Side View
Leetcode 278. First Bad Version
Leetcode 528. Random Pick with Weight
Leetcode 704: Binary Search
Leetcode 875. Koko Eating Bananas

Quick Slow Pointer

Leetcode 141: Linked List Cycle
Leetcode 876. Middle of the Linked List
Find array duplicate

Sliding window

Leetcode 1004. Max Consecutive Ones III

Union Find

Leetcode 721. Accounts Merge

Practical utils

Leetcode 146. LRU Cache
Task Scheduler

TODOs

Lc 103. Binary Tree Zigzag Level Order Traversal
Lc 273. Integer to English Words
Lc 1047. Remove All Adjacent Duplicates In String; using stack
Ring Buffer
Directory that can be searched by (prefix + suffix)
Graph shrink, shrink nodes that are singlely connected, a-b-c, becames abc. Input is list of edges.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages