Skip to content

dukeluo/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

X Follow

How to Start

TypeScript:

  • Install Deno with Homebrew: brew install deno
  • Run the code: deno run TypeScript/206.reverse-linked-list.ts

Racket:

  • Install Racket with Homebrew: brew install minimal-racket
  • Run the code: racket Racket/206.reverse-linked-list.rkt

NeetCode

Roadmap: https://neetcode.io/roadmap

# Title Difficulty Solution Category
217 Contains Duplicate Easy ts Arrays & Hashing
242 Valid Anagram Easy ts Arrays & Hashing
242 Two Sum Easy ts Arrays & Hashing
49 Group Anagrams Medium ts Arrays & Hashing
347 Top K Frequent Elements Medium ts Arrays & Hashing
238 Product of Array Except Self Medium ts Arrays & Hashing
36 Valid Sudoku Medium ts Arrays & Hashing
659 Encode and Decode Strings Medium ts Arrays & Hashing
128 Longest Consecutive Sequence Medium ts Arrays & Hashing
125 Valid Palindrome Easy ts Two Pointers
167 Two Sum II - Input Array Is Sorted Medium ts Two Pointers
15 3Sum Medium ts Two Pointers
11 Container With Most Water Medium ts Two Pointers
42 Trapping Rain Water Hard ts Two Pointers
20 Valid Parentheses Easy ts Stack
155 Min Stack Medium ts Stack
150 Evaluate Reverse Polish Notation Medium ts Stack
22 Generate Parentheses Medium ts Stack
739 Daily Temperatures Medium ts Stack
853 Car Fleet Medium ts Stack
84 Largest Rectangle in Histogram Hard ts Stack
704 Binary Search Easy ts Binary Search
74 Search a 2D Matrix Medium ts Binary Search
875 Koko Eating Bananas Medium ts Binary Search
153 Find Minimum in Rotated Sorted Array Medium ts Binary Search
33 Search in Rotated Sorted Array Medium ts Binary Search
981 Time Based Key-Value Store Medium ts Binary Search
121 Best Time to Buy and Sell Stock Easy ts Sliding Window
3 Longest Substring Without Repeating Characters Medium ts Sliding Window
424 Longest Repeating Character Replacement Medium ts Sliding Window
567 Permutation in String Medium ts Sliding Window
206 Reverse Linked List Easy ts rkt Linked List
21 Merge Two Sorted Lists Easy ts rkt Linked List
143 Reorder List Medium ts Linked List
19 Remove Nth Node From End of List Medium ts Linked List
138 Copy List with Random Pointer Medium ts Linked List
2 Add Two Numbers Medium ts Linked List
141 Linked List Cycle Easy ts Linked List
287 Find The Duplicate Number Medium ts Linked List
146 LRU Cache Medium ts Linked List
226 Invert Binary Tree Easy ts Trees
104 Maximum Depth of Binary Tree Easy ts Trees
543 Diameter of Binary Tree Easy ts Trees
110 Balanced Binary Tree Easy ts Trees
100 Same Tree Easy ts Trees
572 Subtree of Another Tree Easy ts Trees
235 Lowest Common Ancestor of a Binary Search Tree Medium ts Trees
102 Binary Tree Level Order Traversal Medium ts Trees
199 Binary Tree Right Side View Medium ts Trees
1448 Count Good Nodes in Binary Tree Medium ts Trees
98 Validate Binary Search Tree Medium ts Trees
230 Kth Smallest Element in a BST Medium ts Trees
105 Construct Binary Tree from Preorder and Inorder Traversal Medium ts Trees
46 Permutations Medium ts Backtracking
78 Subsets Medium ts Backtracking
39 Combination Sum Medium ts Backtracking
90 Subsets II Medium ts Backtracking
40 Combination Sum II Medium ts Backtracking
79 Word Search Medium ts Backtracking
131 Palindrome Partitioning Medium ts Backtracking
17 Letter Combinations of a Phone Number Medium ts Backtracking
70 Climbing Stairs Easy ts 1-D DP
746 Min Cost Climbing Stairs Easy ts 1-D DP
198 House Robber Medium ts 1-D DP
213 House Robber II Medium ts 1-D DP
5 Longest Palindromic Substring Medium ts 1-D DP
647 Palindromic Substrings Medium ts 1-D DP
91 Decode Ways Medium ts 1-D DP
300 Longest Increasing Subsequence Medium ts 1-D DP
152 Maximum Product Subarray Medium ts 1-D DP

Others

# Title Difficulty Solution Category
2414 Length of the Longest Alphabetical Continuous Substring Medium ts Two Pointers