Skip to content

TylerYang/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

Tyler's leetcode respository.

Here is the question list: (Difficulty Distribution: 1-5 Hard)

    1. Two Sum (2)
    1. Add Two Numbers (3)
    1. Logest String Without Repeating Characters (3)
    1. Median of Two Sorted Arrays (5) *
    1. Longest Palindromic Substring (3) (Brute force, Dynamic Programming)
    1. ZigZag Conversion (3)
    1. Reverse Integer (2)
    1. String to Integer (2)
    1. Palidrome Number (2) (Reverse, Generic)
    1. Regular Expression Matching (5) (Recursive)
    1. Container With Most Water (2)
    1. Integer To Roman (1) (StringBuffer)
    1. Roman To Integer (1)
    1. Longest Common Prefix (1)
    1. 3Sum (2)
    1. 3Sum Closest (2)
    1. Letter Combinations of a Phone Number (1)
    1. 4Sum => kSum (3)
    1. Remove Nth Node From End of List (2) corner case
    1. Valid Parentheses (1)
    1. Merge Two Sorted Lists (1)
    1. Generate Parenthesis (2)
    1. Merge K sorted Lists (2) (merge sort, priority queue, my priority queue)
    1. Swap Nodes in Paris (1)
    1. Reverse Nodes In K-Group (2)
    1. Remove Duplicates Form Sorted Arrays (1)
    1. Remove Element (1)
    1. Implement strStr() (3) (Brute Force, KMP)
    1. Divide Two Integers (4) (Corner case)
    1. Substring with Concatenation of All Words (4) Failed
    1. Next Permutation (2)
    1. Longest Valid Parentheses (3)
    1. Search in Rotated Sorted Array (2)
    1. Search For a Range (2)
    1. Search Insert Position (2)
    1. Valid Suduko (2)
    1. Sudoku Solver (3)
    1. Count and Say (1)
    1. Combination Sum (1)
    1. Combination SumII (1)
    1. First Missing Positive (1)
    1. Trapping Rain Water (3)
    1. Multiply Strings (3) ** failed
    1. Wildcard Matching (5) * failed
    1. Jump GameII (2)
    1. Permutation (2) (recursive, iterative)
    1. PermutationII (2)
    1. Rotate Image(2)
    1. Anagrams (2)
    1. Pow(x, n) (3)
    1. N-Queens (4) (Recursive, Iterative) failed
    1. N-QueensII (4) (Recursive, Iterative)
    1. Maximun SubArray (3) (Divide and Conquer, Linear Solution) ** failed
    1. Spiral Matrix (2)
    1. Jump Game (2)
    1. Merge Intervals (4) *
    1. Insert Interval (4) *
    1. Length of Last Word(1)
    1. Sprial MatrixII (2)
    1. Permutation Sequence (3) * failed
    1. Rotate List (1)
    1. Unique Paths (1)
    1. Unique PathsII (1)
    1. Minimum Path Sum (1)
    1. Valid Number (5) (DFA) *
    1. Plus One (1)
    1. Add Binary (1)
    1. Text Justification (2)
    1. Sqrt() (2)
    1. Climbing Stairs (1)
    1. Simplify Path (3)
    1. Edit Distance (5) * got it
    1. Set Matrix Zeros (1)
    1. Search a 2D Matrix (3) * (lgn solution)
    1. Sort Colors (2)
    1. Minimum Window Substring (5)
    1. Combinations (2)
    1. Subsets (1)
    1. Word Search (3)
    1. Remove Duplicates From Sorted ArrayII (1)
    1. Search In Rotated Sorted ArrayII (2)
    1. Remove Duplicates From Sorted ListII (1)
    1. Remove Duplicates From Sorted List (1)
    1. Largest Rectangle in Histogram (5) * Failed
    1. Maximal Rectangle (5) * Failed
    1. Partition List (1)
    1. Scramble String (5) * (Memorization Algorithm, Dynamic Programming) Failed
    1. Merge Sorted Array (1)
    1. Gray Code (2) * Subtle
    1. SubsetsII (2)
    1. Decode Ways (3) * DP
    1. Reverse Linked ListII (1)
    1. Restore IP Addresses (2)
    1. Binary Tree Inorder Traversal (2) (Stack, Morris Traversal)
    1. Unique Binary Search TreesII (3)
    1. Unique Binary Search Trees (2)
    1. Interleaving String (4) * (Dynamic Programming)
    1. Validate Binary Search Tree (2)
    1. Recover Binary Search Tree (4) * (Stack, Morris Traversal)
    1. Same Tree (2)
    1. Symmetric Tree (2)
    1. Binary Tree Level Order Traversal (3)
    1. Binary Tree Zigzag Level Order Traversal (3)
    1. Maximum Depth of Binary Tree (2)
    1. Construct Binary Tree from Preorder and Inorder Traversal (3) (Recursive, Iterative)
    1. Construct Binary Tree from Inorder and Postorder Traversal (3) (Recursive, Iterative)
    1. Binary Tree Level Order TraversalII (2)
    1. Convert Sorted Array to Binary Search Tree (2)
    1. Convert Sorted List to Binary Search Tree (3) *
    1. Balanced Binary Tree (3)
    1. Minimum Depth of Binary Tree (3)
    1. Path Sum (1)
    1. Path SumII (4)
    1. Flatten Binary Tree To Linked List (4)
    1. Distinct Subsequences (5) * (Dynamic Programming) Failed
    1. Populating Next Right Pointers in Each Node (4)
    1. Populating Next Right Pointers in Each Node (5) *
    1. Pascal's Triangle (1)
    1. Pascal's TriangleII (2)
    1. Triangle (4)
    1. Best Time to Buy and Sell Stock (2) (Dynamic Programming)
    1. Best Time to Buy and Sell StockII (3) (Greedy)
    1. Best Time to Buy and Sell StockIII (4) (Dynamic Programming) *
    1. Binary Tree Maximum Path Sum (5)
    1. Valid Palidrome (2)
    1. Word LadderII (5) *
    1. Word Ladder (4) *
    1. Longest Consecutive Sequence (3)
    1. Sum Root to Leaf Numbers (2)
    1. Surrounded Regions (4)
    1. Palindrome Partitioning (2)
    1. Palindrome Partitioning (5) (Dynamic Programming) *
    1. Clone Graph (2)
    1. Gas Station (3)
    1. Candy (5) *
    1. Single Number (2)
    1. Single NumberII (5) *
    1. Copy List with Random Pointer (3)
    1. Word Break (4) *
    1. Word BreakII (4) *
    1. Linked List Cycle (3)
    1. Linked List CycleII (5) *
    1. Reordre List (3)
    1. Binary Tree Preorder Traversal (1)
    1. Binary Tree Postorder Traversal (3) (Morris Traversal) *
    1. LUR Cache (4) *
    1. Insertion Sort List (2)
    1. Sort List (5) (Paper) *
    1. Max Points on a Line (3)
    1. Evaluate Reverse Polish Notation (2)
    1. Reverse Words in a String (2)
    1. Maximum Product Subarray (3) (Dynamic Programming) *
    1. Find Minimum in Rotated Sorted Array (3) *
    1. Find Minimum in Rotated Sorted ArrayII (4) *
    1. Min Stack (2)
    1. Intersection of Two Linked Lists (2)
    1. Find Peak Element (2) (Binary Search)
    1. Maximum Gap (5) * (Bucket Sort)
    1. Compare Version Numbers (2)
    1. Fraction to Recurring Decimal (3)
    1. Excel Sheet Column Title (3)
    1. Majority Element (2) *
    1. Excel Sheet Column Number (2)
    1. Factorial Trailing Zeroes (3)
    1. Binary Search Tree Iterator (3) *
    1. Dungeon Game (5) (Dynamic Programming) *
    1. Largest Number (3)
    1. Repeated DNA Sequences (3) *
    1. Best Time to Buy and Sell Stock IV (5) (Dynamic Programming) *
    1. Rotate Array (3) (Programming Perls) (Swap, Reverse)
    1. Reverse Bits (2)
    1. Number of 1 Bits (2)
    1. House Robber (2)
    1. Binary Tree Right Side View (2)
    1. Number of Islands (3) (Union Find, DFS)
    1. Bitwise AND of Numbers Range (Bit manipulation) *
    1. Happy Number (2)
    1. Remove Linked List Elements (1)
    1. Count Primes (2) *
    1. Isomorphic Strings (2)
    1. Reverse Linked List (2) (Iterative, Recursive)
    1. Course Schedule (5) (Topological Sort, DFS)
    1. Implement Trie (Prefix Tree) (3)
    1. Minimum Size Subarray Sum (3) (Slide Window)
    1. Course ScheduleII (3) (Topological Sort) *
    1. Add and Search Word - Data structure design (Trie) *
    1. Word Search II (Trie, Backtracking) (Trie, BackTracking) *
    1. House Robber II (Dynamic Programming) *
    1. Shortest Palindrome (String) *
    1. Kth LargestElement in an Array
    1. Combination Sum III
    1. Contains Duplicate * 218. The Skyline Problem ** (PriorityQueue, BIT, SegmentTree) * 219. Contains DuplicateII
    1. Contains DuplicateIII
    1. Maximal Square (Dynamic Programming) *
    1. Count Complete Tree Nodes (Binary Search) **
    1. Rectangle Area
    1. Basic Calculator
    1. Implement Stack Using Queues
    1. Invert Binary Tree
    1. Basic CalculatorII
    1. Summary Ranges
    1. Majority ElementII
    1. Kth Smallest Element in a BST
    1. Power of Two
    1. Implement Queue using Stacks
    1. Number Of Digit One
    1. Palindrome LinkedList
    1. Lowest Common Ancestor of a Binary Search Tree
    1. Lowest Common Ancestor of a Binary Tree
    1. Delete Node in a Linked List
    1. Product of Array Except Self
    1. Sliding Window Maximum (Double Ended Queue) **
    1. Search a 2D MatrixII
    1. Different Ways to Add Parentheses (Divide and Conquer) *
    1. Valid Anagram
    1. Binary Tree Paths *
    1. Ugly Number
    1. Ugly Number II (Heap) *
    1. Missing Number
    1. Integer to English Words
    1. H-Index
    1. H-IndexII
    1. First Bad Version
    1. Perfect Squares
    1. Expression Add Operators
    1. Move Zeroes
    1. Peeking Iterator
    1. Find the Duplicate Number
    1. Game of Life
    1. Word Pattern
    1. Find Median from Data Stream (Heap)
    1. Serialize and Deserialize Binary Tree
    1. Bulls and Cows
    1. Longest Increasing Subsequence (Dynamic Programming)
    1. Remove Invalid Parentheses ()
    1. Range Sum Query - Immutable (Dynamic Programming)
    1. Range Sum Query 2D - Immutable (Dynamic Programming)
    1. Additive Number (NoTag)
    1. Range Sum Query(Fenwick Tree, SegmentTree) ******
    1. Best time to buy and sell with cooldown(Dynamic Programming) ************************
    1. Minimum Height Tree (Graph, BFS) ********
    1. Burst Ballons (Divide and Conquer, DP) **********************
    1. Super Ugly Number(Math, Heap) ****
    1. Count of Smaller Numbers After Self(Binary Indexed Tree / Segment Tree) ****
    1. Remove Duplicate Letters(Stack, Greedy) *
    1. Maximum Product of Word Length(Bit Manimulation)
    1. Bulb Switcher(Math) *
    1. Create Maximum Number(Greedy) ****
    1. Coin Change (Dynamic Programming) *
    1. Wiggle Sort II (Quick Select, Three Way Partition) ****
    1. Power of Three (math)
    1. Count of Range Sum (Binary Indexed Tree / Segment Tree) ****
    1. Odd Even LinkedList(Linked List)
    1. Longest Increasing Path in a Matrix (DFS, Topological Sort, Memoization) *
    1. Pathcing Array (Greedy) *
    1. Verify Preorder Serialization of a Binary Tree (Stack)
    1. Reconstruct Itinerary (Graph)
    1. Longest Substring with At Least K Repeating Characters (Bit Manipulation);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages