algo
βββ Array
βΒ Β βββ __0036__Valid Sudoku.py
βΒ Β βββ __0053__Maximum Subarray.py
βΒ Β βββ __0056__Merge Intervals.py
βΒ Β βββ __0057__Insert Interval.py
βΒ Β βββ __0122__Best Time to Buy and Sell Stock II.py
βΒ Β βββ __0134__Gas Station.py
βΒ Β βββ __0228__Summary Ranges.py
βΒ Β βββ __0238__Product of Array Except Self.py
βΒ Β βββ __0243__Shortest Word Distance.py
βΒ Β βββ __0252__Meeting Rooms.py
βΒ Β βββ __0268__Missing Number.py
βΒ Β βββ __0283__Move Zeroes.py
βΒ Β βββ __0303__Range Sum Query - Immutable.py
βΒ Β βββ __0350__Intersection of Two Arrays II.py
βΒ Β βββ __0384__Shuffle an Array.py
βΒ Β βββ __0435__Non-overlapping Intervals.py
βΒ Β βββ __0462__Minimum Moves to Equal Array Elements II.py
βΒ Β βββ __0523__Continuous Subarray Sum.py
βΒ Β βββ __0560__Subarray Sum Equals K.py
βΒ Β βββ __0670__Maximum Swap.py
βΒ Β βββ __0724__Find Pivot Index.py
βΒ Β βββ __0760__Find Anagram Mappings.py
βΒ Β βββ __0896__Monotonic Array.py
βΒ Β βββ __0954__Array of Doubled Pairs.py
βΒ Β βββ __0985__Sum of Even Numbers After Queries.py
βΒ Β βββ __0986__Interval List Intersections.py
βΒ Β βββ __1465__Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts.py
βΒ Β βββ __1710__Maximum Units on a Truck.py
βΒ Β βββ __2154__Keep Multiplying Found Values by Two.py
βΒ Β βββ __2231__Largest Number After Digit Swaps by Parity.py
βΒ Β βββ __2248__Intersection of Multiple Arrays.py
βΒ Β βββ __2256__Minimum Average Difference.py
βΒ Β βββ __2270__Number of Ways to Split Array.py
βΒ Β βββ __2274__Maximum Consecutive Floors Without Special Floors.py
βββ BFS
βΒ Β βββ __0102__Binary Tree Level Order Traversal.py
βΒ Β βββ __0103__Binary Tree Zigzag Level Order Traversal.py
βΒ Β βββ __0107__Binary Tree Level Order Traversal II.py
βΒ Β βββ __0117__Populating Next Right Pointers in Each Node II.py
βΒ Β βββ __0126__Word Ladder II.py
βΒ Β βββ __0127__Word Ladder.py
βΒ Β βββ __0133__Clone Graph.py
βΒ Β βββ __0199__Binary Tree Right Side View.py
βΒ Β βββ __0207__Course Schedule.py
βΒ Β βββ __0210__Course Schedule II.py
βΒ Β βββ __0286__Walls and Gates.py
βΒ Β βββ __0297__Serialize and Deserialize Binary Tree.py
βΒ Β βββ __0310__Minimum Height Trees.py
βΒ Β βββ __0515__Find Largest Value in Each Tree Row.py
βΒ Β βββ __0662__Maximum Width of Binary Tree.py
βΒ Β βββ __0752__Open the Lock.py
βΒ Β βββ __0909__Snakes and Ladders.py
βΒ Β βββ __0994__Rotting Oranges.py
βΒ Β βββ __1091__Shortest Path in Binary Matrix.py
βΒ Β βββ __1162__As Far from Land as Possible.py
βΒ Β βββ __1197__Minimum Knight Moves.py
βΒ Β βββ __1306__Jump Game III.py
βΒ Β βββ __1730__Shortest Path to Get Food.py
βΒ Β βββ __2258__Escape the Spreading Fire.py
βββ BinarySearch
βΒ Β βββ __0004__Median of Two Sorted Arrays.py
βΒ Β βββ __0029__Divide Two Integers.py
βΒ Β βββ __0033__Search in Rotated Sorted Array.py
βΒ Β βββ __0034__Find First and Last Position of Element in Sorted Array.py
βΒ Β βββ __0035__Search Insert Position.py
βΒ Β βββ __0050__Pow(x, n).py
βΒ Β βββ __0069__Sqrt(x).py
βΒ Β βββ __0074__Search a 2D Matrix.py
βΒ Β βββ __0081__Search in Rotated Sorted Array II.py
βΒ Β βββ __0153__Find Minimum in Rotated Sorted Array.py
βΒ Β βββ __0162__Find Peak Element.py
βΒ Β βββ __0240__Search a 2D Matrix II.py
βΒ Β βββ __0278__First Bad Version.py
βΒ Β βββ __0362__Design Hit Counter.py
βΒ Β βββ __0441__Arranging Coins.py
βΒ Β βββ __0528__Random Pick with Weight.py
βΒ Β βββ __0540__Single Element in a Sorted Array.py
βΒ Β βββ __0658__Find K Closest Elements.py
βΒ Β βββ __0702__Search in a Sorted Array of Unknown Size.py
βΒ Β βββ __0704__Binary Search.py
βΒ Β βββ __0875_Note
βΒ Β βββ __0875__Koko Eating Bananas.py
βΒ Β βββ __0981__Time Based Key-Value Store.py
βΒ Β βββ __1011__Capacity To Ship Packages Within D Days.py
βΒ Β βββ __1146__Snapshot Array.py
βΒ Β βββ __1182__Shortest Distance to Target Color.py
βΒ Β βββ __1198__Find Smallest Common Element in All Rows.py
βΒ Β βββ __1283__Find the Smallest Divisor Given a Threshold.py
βΒ Β βββ __1631__Path With Minimum Effort.py
βΒ Β βββ __2226__Maximum Candies Allocated to K Children.py
βΒ Β βββ __2250__Count Number of Rectangles Containing Each Point.py
βΒ Β βββ __2251__Number of Flowers in Full Bloom.py
βββ BitOperation
βΒ Β βββ __0136__Single Number.py
βΒ Β βββ __0191__Number of 1 Bits.py
βΒ Β βββ __0318__Maximum Product of Word Lengths.py
βΒ Β βββ __1342__Number of Steps to Reduce a Number to Zero.py
βΒ Β βββ __1461__Check If a String Contains All Binary Codes of Size K.py
βΒ Β βββ __2275__Largest Combination With Bitwise AND Greater Than Zero.py
βββ DFS
βΒ Β βββ __0017__Letter Combinations of a Phone Number.py
βΒ Β βββ __0022__Generate Parentheses.py
βΒ Β βββ __0037__Sudoku Solver.py
βΒ Β βββ __0039__Combination Sum.py
βΒ Β βββ __0040__Combination Sum II.py
βΒ Β βββ __0046__Permutations.py
βΒ Β βββ __0047__Permutations II.py
βΒ Β βββ __0051__N-Queens.py
βΒ Β βββ __0052__N-Queens II.py
βΒ Β βββ __0077__Combinations.py
βΒ Β βββ __0078__Subsets.py
βΒ Β βββ __0079__Word Search.py
βΒ Β βββ __0089__Gray Code.py
βΒ Β βββ __0090__Subsets II.py
βΒ Β βββ __0112__Path Sum.py
βΒ Β βββ __0113__Path Sum II.py
βΒ Β βββ __0131__Palindrome Partitioning.py
βΒ Β βββ __0139__Word Break.py
βΒ Β βββ __0212__Word Search II.py
βΒ Β βββ __0216__Combination Sum III.py
βΒ Β βββ __0247__Strobogrammatic Number II.py
βΒ Β βββ __0267__Palindrome Permutation II.py
βΒ Β βββ __0291__Word Pattern II.py
βΒ Β βββ __0401__Binary Watch.py
βΒ Β βββ __0690__Employee Importance.py
βΒ Β βββ __0784__Letter Case Permutation.py
βΒ Β βββ __0841__Keys and Rooms.py
βΒ Β βββ __1219__Path with Maximum Gold.py
βΒ Β βββ __1391__Check if There is a Valid Path in a Grid.py
βΒ Β βββ __1443__Minimum Time to Collect All Apples in a Tree.py
βΒ Β βββ __1593__Split a String Into the Max Number of Unique Substrings.py
βΒ Β βββ __1706__Where Will the Ball Fall.py
βββ DP
βΒ Β βββ __0010__Regular Expression Matching.py
βΒ Β βββ __0044__Wildcard Matching.py
βΒ Β βββ __0045__Jump Game II.py
βΒ Β βββ __0055__Jump Game.py
βΒ Β βββ __0062__Unique Paths.py
βΒ Β βββ __0063__Unique Paths II.py
βΒ Β βββ __0064__Minimum Path Sum.py
βΒ Β βββ __0070__Climbing Stairs.py
βΒ Β βββ __0096__Unique Binary Search Trees.py
βΒ Β βββ __0118__Pascal's Triangle.py
βΒ Β βββ __0119__Pascal's Triangle II.py
βΒ Β βββ __0120__Triangle.py
βΒ Β βββ __0121__Best Time to Buy and Sell Stock.py
βΒ Β βββ __0123__Best Time to Buy and Sell Stock III.py
βΒ Β βββ __0152__Maximum Product Subarray.py
βΒ Β βββ __0198__House Robber.py
βΒ Β βββ __0221__Maximal Square.py
βΒ Β βββ __0256__Paint House.py
βΒ Β βββ __0279__Perfect Squares.py
βΒ Β βββ __0300__Longest Increasing Subsequence.py
βΒ Β βββ __0322__Coin Change.py
βΒ Β βββ __0329__Longest Increasing Path in a Matrix.py
βΒ Β βββ __0338__Counting Bits.py
βΒ Β βββ __0354__Russian Doll Envelopes.py
βΒ Β βββ __0368__Largest Divisible Subset.py
βΒ Β βββ __0377__Combination Sum IV.py
βΒ Β βββ __0416__Partition Equal Subset Sum.py
βΒ Β βββ __0453__Minimum Moves to Equal Array Elements.py
βΒ Β βββ __0474__Ones and Zeroes.py
βΒ Β βββ __0494__Target Sum.py
βΒ Β βββ __0509__Fibonacci Number.py
βΒ Β βββ __0516__Longest Palindromic Subsequence.py
βΒ Β βββ __0518__Coin Change 2.py
βΒ Β βββ __0542__01 Matrix.py
βΒ Β βββ __0576__Out of Boundary Paths.py
βΒ Β βββ __0583__Delete Operation for Two Strings.py
βΒ Β βββ __0646__Maximum Length of Pair Chain.py
βΒ Β βββ __0688__Knight Probability in Chessboard.py
βΒ Β βββ __0718__Maximum Length of Repeated Subarray.py
βΒ Β βββ __0740__Delete and Earn.py
βΒ Β βββ __0931__Minimum Falling Path Sum.py
βΒ Β βββ __0935__Knight Dialer.py
βΒ Β βββ __0983__Minimum Cost For Tickets.py
βΒ Β βββ __1014__Best Sightseeing Pair.py
βΒ Β βββ __1025__Divisor Game.py
βΒ Β βββ __1027__Longest Arithmetic Subsequence.py
βΒ Β βββ __1048__Longest String Chain.py
βΒ Β βββ __1049__Last Stone Weight II.py
βΒ Β βββ __1130__Minimum Cost Tree From Leaf Values.py
βΒ Β βββ __1137__N-th Tribonacci Number.py
βΒ Β βββ __1143__Longest Common Subsequence.py
βΒ Β βββ __1235__Maximum Profit in Job Scheduling.py
βΒ Β βββ __1277__Count Square Submatrices with All Ones.py
βΒ Β βββ __1289__Minimum Falling Path Sum II.py
βΒ Β βββ __1395__Count Number of Teams.py
βΒ Β βββ __1480__Running Sum of 1d Array.py
βΒ Β βββ __1641__Count Sorted Vowel Strings.py
βΒ Β βββ __1696__Jump Game VI.py
βΒ Β βββ __1774__Closest Dessert Cost.py
βΒ Β βββ __1937__Maximum Number of Points with Cost.py
βΒ Β βββ __2008__Maximum Earnings From Taxi.py
βΒ Β βββ __2218__Maximum Value of K Coins From Piles.py
βββ Design
βΒ Β βββ __0146__LRU Cache.py
βΒ Β βββ __0284__Peeking Iterator.py
βΒ Β βββ __0348__Design Tic-Tac-Toe.py
βΒ Β βββ __0352__Data Stream as Disjoint Intervals.py
βΒ Β βββ __0380__Insert Delete GetRandom O(1).py
βΒ Β βββ __0387__First Unique Character in a String.py
βΒ Β βββ __0706__Design HashMap.py
βΒ Β βββ __1396__Design Underground System.py
βΒ Β βββ __1429__First Unique Number.py
βΒ Β βββ __1570__Dot Product of Two Sparse Vectors.py
βΒ Β βββ __1603__Design Parking System.py
βββ Graph
βΒ Β βββ __0261__Graph Valid Tree.py
βΒ Β βββ __0323__Number of Connected Components in an Undirected Graph.py
βΒ Β βββ __0332__Reconstruct Itinerary.py
βΒ Β βββ __0399__Evaluate Division.py
βΒ Β βββ __0490__The Maze.py
βΒ Β βββ __0499__The Maze III.py
βΒ Β βββ __0505__The Maze II.py
βΒ Β βββ __0547__Number of Provinces.py
βΒ Β βββ __0684__Redundant Connection.py
βΒ Β βββ __0743__Network Delay Time.py
βΒ Β βββ __0785__Is Graph Bipartite?.py
βΒ Β βββ __0787__Cheapest Flights Within K Stops.py
βΒ Β βββ __0797__All Paths From Source to Target.py
βΒ Β βββ __0947__Most Stones Removed with Same Row or Column.py
βΒ Β βββ __1059__All Paths from Source Lead to Destination.py
βΒ Β βββ __1192__Critical Connections in a Network.py
βΒ Β βββ __1202__Smallest String With Swaps.py
βΒ Β βββ __1319__Number of Operations to Make Network Connected.py
βΒ Β βββ __1361__Validate Binary Tree Nodes.py
βΒ Β βββ __1557__Minimum Number of Vertices to Reach All Nodes.py
βΒ Β βββ __1584__Min Cost to Connect All Points.py
βΒ Β βββ __1971__Find if Path Exists in Graph.py
βΒ Β βββ __2093__Minimum Cost to Reach City With Discounts.py
βΒ Β βββ __2225__Find Players With Zero or One Losses.py
βββ Greedy
βΒ Β βββ __0316__Remove Duplicate Letters.py
βΒ Β βββ __0406__Queue Reconstruction by Height.py
βΒ Β βββ __0484__Find Permutation.py
βΒ Β βββ __1029__Two City Scheduling.py
βΒ Β βββ __1414__Find the Minimum Number of Fibonacci Numbers Whose Sum Is K.py
βΒ Β βββ __1567__Maximum Length of Subarray With Positive Product.py
βΒ Β βββ __1689__Partitioning Into Minimum Number Of Deci-Binary Numbers.py
βΒ Β βββ __2216__Minimum Deletions to Make Array Beautiful.py
βββ HashMap
βΒ Β βββ __0001__Two Sum.py
βΒ Β βββ __0049__Group Anagrams.py
βΒ Β βββ __0137__Single Number II.py
βΒ Β βββ __0170___Two Sum III - Data structure design.py
βΒ Β βββ __0187__Repeated DNA Sequences.py
βΒ Β βββ __0244__Shortest Word Distance II.py
βΒ Β βββ __0249__Group Shifted Strings.py
βΒ Β βββ __0260__Single Number III.py
βΒ Β βββ __0266__Palindrome Permutation.py
βΒ Β βββ __0287__Find the Duplicate Number.py
βΒ Β βββ __0290__Word Pattern.py
βΒ Β βββ __0349__Intersection of Two Arrays.py
βΒ Β βββ __0409__Longest Palindrome.py
βΒ Β βββ __0535__Encode and Decode TinyURL.py
βΒ Β βββ __0705__Design HashSet.py
βΒ Β βββ __0820__Short Encoding of Words.py
βΒ Β βββ __1160__Find Words That Can Be Formed by Characters.py
βΒ Β βββ __1525__Number of Good Ways to Split a String.py
βΒ Β βββ __2007__Find Original Array From Doubled Array.py
βΒ Β βββ __2013__Detect Squares.py
βΒ Β βββ __2156__Find Substring With Given Hash Value.py
βΒ Β βββ __2215__Find the Difference of Two Arrays.py
βΒ Β βββ __2227__Encrypt and Decrypt Strings.py
βΒ Β βββ __2249__Count Lattice Points Inside a Circle.py
βββ Heap
βΒ Β βββ __0215__Kth Largest Element in an Array.py
βΒ Β βββ __0253__Meeting Rooms II.py
βΒ Β βββ __0263__Ugly Number.py
βΒ Β βββ __0264__Ugly Number II.py
βΒ Β βββ __0295__Find Median from Data Stream.py
βΒ Β βββ __0347__Top K Frequent Elements.py
βΒ Β βββ __0378__Kth Smallest Element in a Sorted Matrix.py
βΒ Β βββ __0480__Sliding Window Median.py
βΒ Β βββ __0630__Course Schedule III.py
βΒ Β βββ __0692__Top K Frequent Words.py
βΒ Β βββ __0703__Kth Largest Element in a Stream.py
βΒ Β βββ __0973__K Closest Points to Origin.py
βΒ Β βββ __1046__Last Stone Weight.py
βΒ Β βββ __1094__Car Pooling.py
βΒ Β βββ __1167__Minimum Cost to Connect Sticks.py
βΒ Β βββ __1642__Furthest Building You Can Reach.py
βΒ Β βββ __2233__Maximum Product After K Increments.py
βββ Island
βΒ Β βββ __0130__Surrounded Regions.py
βΒ Β βββ __0200__Number of Islands.py
βΒ Β βββ __0305__Number of Islands II.py
βΒ Β βββ __0417__Pacific Atlantic Water Flow.py
βΒ Β βββ __0419__Battleships in a Board.py
βΒ Β βββ __0694__Number of Distinct Islands.py
βΒ Β βββ __0695__Max Area of Island.py
βΒ Β βββ __0934__Shortest Bridge.py
βΒ Β βββ __1020__Number of Enclaves.py
βΒ Β βββ __1254__Number of Closed Islands.py
βΒ Β βββ __1905__Count Sub Islands.py
βββ LinkedList
βΒ Β βββ __0002__Add Two Numbers.py
βΒ Β βββ __0019__Remove Nth Node From End of List.py
βΒ Β βββ __0021__Merge Two Sorted Lists.py
βΒ Β βββ __0023__Merge k Sorted Lists.py
βΒ Β βββ __0024__Swap Nodes in Pairs.py
βΒ Β βββ __0061__Rotate List.py
βΒ Β βββ __0082__Remove Duplicates from Sorted List II.py
βΒ Β βββ __0083__Remove Duplicates from Sorted List.py
βΒ Β βββ __0086__Partition List.py
βΒ Β βββ __0092__Reverse Linked List II.py
βΒ Β βββ __0138__Copy List with Random Pointer.py
βΒ Β βββ __0141__Linked List Cycle.py
βΒ Β βββ __0142__Linked List Cycle II.py
βΒ Β βββ __0148__Sort List.py
βΒ Β βββ __0160__Intersection of Two Linked Lists.py
βΒ Β βββ __0206__Reverse Linked List.py
βΒ Β βββ __0234__Palindrome Linked List.py
βΒ Β βββ __0237__Delete Node in a Linked List.py
βΒ Β βββ __1721__Swapping Nodes in a Linked List.py
βββ Math
βΒ Β βββ __0223__Rectangle Area.py
βΒ Β βββ __0412__Fizz Buzz.py
βΒ Β βββ __0593__Valid Square.py
βΒ Β βββ __0754__Reach a Number.py
βΒ Β βββ __1344__Angle Between Hands of a Clock.py
βΒ Β βββ __2217__Find Palindrome With Fixed Length.py
βΒ Β βββ __2224__Minimum Number of Operations to Convert Time.py
βββ Matrix
βΒ Β βββ __0048__Rotate Image.py
βΒ Β βββ __0054__Spiral Matrix.py
βΒ Β βββ __0059__Spiral Matrix II.py
βΒ Β βββ __0073__Set Matrix Zeroes.py
βΒ Β βββ __0289__Game of Life.py
βΒ Β βββ __0304__Range Sum Query 2D - Immutable.py
βΒ Β βββ __0498__Diagonal Traverse.py
βΒ Β βββ __0867__Transpose Matrix.py
βΒ Β βββ __1260__Shift 2D Grid.py
βΒ Β βββ __1275__Find Winner on a Tic Tac Toe Game.py
βΒ Β βββ __1861__Rotating the Box.py
βΒ Β βββ __2257__Count Unguarded Cells in the Grid.py
βββ Monotonic
βΒ Β βββ __0084__Largest Rectangle in Histogram.py
βΒ Β βββ __0085__Maximal Rectangle.py
βΒ Β βββ __0239__Sliding Window Maximum.py
βΒ Β βββ __0456__132 Pattern.py
βΒ Β βββ __0496__Next Greater Element I.py
βΒ Β βββ __0503__Next Greater Element II.py
βΒ Β βββ __0739__Daily Temperatures.py
βΒ Β βββ __0862__Shortest Subarray with Sum at Least K.py
βΒ Β βββ __0901__Online Stock Span.py
βΒ Β βββ __0907__Sum of Subarray Minimums.py
βΒ Β βββ __0975__Odd Even Jump.py
βΒ Β βββ __1438__Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit.py
βΒ Β βββ __1475__Final Prices With a Special Discount in a Shop.py
βΒ Β βββ __1762__Buildings With an Ocean View.py
βΒ Β βββ __2104__Sum of Subarray Ranges.py
βββ Prefix
βΒ Β βββ __0370__Range Addition.py
βΒ Β βββ __0926__Flip String to Monotone Increasing.py
βββ Queue
βΒ Β βββ __0225__Implement Stack using Queues.py
βΒ Β βββ __0346__Moving Average from Data Stream.py
βββ Recursion
βΒ Β βββ __0095__Unique Binary Search Trees II.py
βΒ Β βββ __0241__Different Ways to Add Parentheses.py
βΒ Β βββ __0394__Decode String.py
βΒ Β βββ __0726__Number of Atoms.py
βΒ Β βββ __1087__Brace Expansion.py
βΒ Β βββ __1096__Brace Expansion II.py
βββ Sorting
βΒ Β βββ __0179__Largest Number.py
βΒ Β βββ __0242__Valid Anagram.py
βΒ Β βββ __0539__Minimum Time Difference.py
βΒ Β βββ __0581__Shortest Unsorted Continuous Subarray.py
βΒ Β βββ __0937__Reorder Data in Log Files.py
βΒ Β βββ __2273__Find Resultant Array After Removing Anagrams.py
βββ Stack
βΒ Β βββ __0020__Valid Parentheses.py
βΒ Β βββ __0032__Longest Valid Parentheses.py
βΒ Β βββ __0071__Simplify Path.py
βΒ Β βββ __0150__Evaluate Reverse Polish Notation.py
βΒ Β βββ __0155__Min Stack.py
βΒ Β βββ __0224__Basic Calculator.py
βΒ Β βββ __0227__Basic Calculator II.py
βΒ Β βββ __0232__Implement Queue using Stacks.py
βΒ Β βββ __0682__Baseball Game.py
βΒ Β βββ __0735__Asteroid Collision.py
βΒ Β βββ __1209__Remove All Adjacent Duplicates in String II.py
βββ String
βΒ Β βββ __0009__Palindrome Number.py
βΒ Β βββ __0014__Longest Common Prefix.py
βΒ Β βββ __0068__Text Justification.py
βΒ Β βββ __0151__Reverse Words in a String.py
βΒ Β βββ __0161__One Edit Distance.py
βΒ Β βββ __0168__Excel Sheet Column Title.py
βΒ Β βββ __0171__Excel Sheet Column Number.py
βΒ Β βββ __0392__Is Subsequence.py
βΒ Β βββ __0423__Reconstruct Original Digits from English.py
βΒ Β βββ __0459__Repeated Substring Pattern.py
βΒ Β βββ __0767__Reorganize String.py
βΒ Β βββ __0792__Number of Matching Subsequences.py
βΒ Β βββ __0811__Subdomain Visit Count.py
βΒ Β βββ __0844__Backspace String Compare.py
βΒ Β βββ __1041__Robot Bounded In Circle.py
βΒ Β βββ __1165__Single-Row Keyboard.py
βΒ Β βββ __2232__Minimize Result by Adding Parentheses to Expression.py
βΒ Β βββ __2255__Count Prefixes of a Given String.py
βΒ Β βββ __2269__Find the K-Beauty of a Number.py
βββ Tree
βΒ Β βββ __0094__Binary Tree Inorder Traversal.py
βΒ Β βββ __0098__Validate Binary Search Tree.py
βΒ Β βββ __0099__Recover Binary Search Tree.py
βΒ Β βββ __0100__Same Tree.py
βΒ Β βββ __0101__Symmetric Tree.py
βΒ Β βββ __0104__Maximum Depth of Binary Tree.py
βΒ Β βββ __0105__Construct Binary Tree from Preorder and Inorder Traversal.py
βΒ Β βββ __0106__Construct Binary Tree from Inorder and Postorder Traversal.py
βΒ Β βββ __0108__Convert Sorted Array to Binary Search Tree.py
βΒ Β βββ __0109__Convert Sorted List to Binary Search Tree.py
βΒ Β βββ __0110__Balanced Binary Tree.py
βΒ Β βββ __0111__Minimum Depth of Binary Tree.py
βΒ Β βββ __0114__Flatten Binary Tree to Linked List.py
βΒ Β βββ __0116__Populating Next Right Pointers in Each Node.py
βΒ Β βββ __0124__Binary Tree Maximum Path Sum.py
βΒ Β βββ __0129__Sum Root to Leaf Numbers.py
βΒ Β βββ __0144__Binary Tree Preorder Traversal.py
βΒ Β βββ __0173__Binary Search Tree Iterator.py
βΒ Β βββ __0222__Count Complete Tree Nodes.py
βΒ Β βββ __0226__Invert Binary Tree.py
βΒ Β βββ __0230__Kth Smallest Element in a BST.py
βΒ Β βββ __0235__Lowest Common Ancestor of a Binary Search Tree.py
βΒ Β βββ __0236__Lowest Common Ancestor of a Binary Tree.py
βΒ Β βββ __0257__Binary Tree Paths.py
βΒ Β βββ __0270__Closest Binary Search Tree Value.py
βΒ Β βββ __0285__Inorder Successor in BST.py
βΒ Β βββ __0314__Binary Tree Vertical Order Traversal.py
βΒ Β βββ __0333__Largest BST Subtree.py
βΒ Β βββ __0341__Flatten Nested List Iterator.py
βΒ Β βββ __0366__Find Leaves of Binary Tree.py
βΒ Β βββ __0429__N-ary Tree Level Order Traversal.py
βΒ Β βββ __0437__Path Sum III.py
βΒ Β βββ __0449__Serialize and Deserialize BST.py
βΒ Β βββ __0450__Delete Node in a BST.py
βΒ Β βββ __0510__Inorder Successor in BST II.py
βΒ Β βββ __0513__Find Bottom Left Tree Value.py
βΒ Β βββ __0538__Convert BST to Greater Tree.py
βΒ Β βββ __0543__Diameter of Binary Tree.py
βΒ Β βββ __0559__Maximum Depth of N-ary Tree.py
βΒ Β βββ __0563__Binary Tree Tilt.py
βΒ Β βββ __0572__Subtree of Another Tree.py
βΒ Β βββ __0617__Merge Two Binary Trees.py
βΒ Β βββ __0663__Equal Tree Partition.py
βΒ Β βββ __0669__Trim a Binary Search Tree.py
βΒ Β βββ __0687__Longest Univalue Path.py
βΒ Β βββ __0700__Search in a Binary Search Tree.py
βΒ Β βββ __0701__Insert into a Binary Search Tree.py
βΒ Β βββ __0776__Split BST.py
βΒ Β βββ __0863__All Nodes Distance K in Binary Tree.py
βΒ Β βββ __0889__Construct Binary Tree from Preorder and Postorder Traversal.py
βΒ Β βββ __0897__Increasing Order Search Tree.py
βΒ Β βββ __0938__Range Sum of BST.py
βΒ Β βββ __0958__Check Completeness of a Binary Tree.py
βΒ Β βββ __0968__Binary Tree Cameras.py
βΒ Β βββ __0979__Distribute Coins in Binary Tree.py
βΒ Β βββ __0987__Vertical Order Traversal of a Binary Tree.py
βΒ Β βββ __1008__Construct Binary Search Tree from Preorder Traversal.py
βΒ Β βββ __1038__Binary Search Tree to Greater Sum Tree.py
βΒ Β βββ __1110__Delete Nodes And Return Forest.py
βΒ Β βββ __1161__Maximum Level Sum of a Binary Tree.py
βΒ Β βββ __1302__Deepest Leaves Sum.py
βΒ Β βββ __1305__All Elements in Two Binary Search Trees.py
βΒ Β βββ __1379__Find a Corresponding Node of a Binary Tree in a Clone of That Tree.py
βΒ Β βββ __1382__Balance a Binary Search Tree.py
βΒ Β βββ __1448__Count Good Nodes in Binary Tree.py
βΒ Β βββ __1530__Number of Good Leaf Nodes Pairs.py
βΒ Β βββ __1644__Lowest Common Ancestor of a Binary Tree II.py
βΒ Β βββ __1650__Lowest Common Ancestor of a Binary Tree III.py
βββ Trie
βΒ Β βββ __0208__Implement Trie (Prefix Tree).py
βΒ Β βββ __0211__Design Add and Search Words Data Structure.py
βΒ Β βββ __0648__Replace Words.py
βΒ Β βββ __0677__Map Sum Pairs.py
βΒ Β βββ __1166__Design File System.py
βΒ Β βββ __1268__Search Suggestions System.py
βΒ Β βββ __1804__Implement Trie II (Prefix Tree).py
βββ Two-Pointer
βΒ Β βββ __0003__Longest Substring Without Repeating Characters.py
βΒ Β βββ __0005__Longest Palindromic Substring.py
βΒ Β βββ __0011__Container With Most Water.py
βΒ Β βββ __0015__3Sum.py
βΒ Β βββ __0016__3Sum Closest.py
βΒ Β βββ __0018__4Sum.py
βΒ Β βββ __0031__Next Permutation.py
βΒ Β βββ __0042__Trapping Rain Water.py
βΒ Β βββ __0075__Sort Colors.py
βΒ Β βββ __0080__Remove Duplicates from Sorted Array II.py
βΒ Β βββ __0088__Merge Sorted Array.py
βΒ Β βββ __0125__Valid Palindrome.py
βΒ Β βββ __0159__Longest Substring with At Most Two Distinct Characters.py
βΒ Β βββ __0167__Two Sum II - Input array is sorted.py
βΒ Β βββ __0189__Rotate Array.py
βΒ Β βββ __0209__Minimum Size Subarray Sum.py
βΒ Β βββ __0245__Shortest Word Distance III.py
βΒ Β βββ __0259__3Sum Smaller.py
βΒ Β βββ __0277__Find the Celebrity.py
βΒ Β βββ __0340__Longest Substring with At Most K Distinct Characters.py
βΒ Β βββ __0395__Longest Substring with At Least K Repeating Characters.py
βΒ Β βββ __0438__Find All Anagrams in a String.py
βΒ Β βββ __0532__K-diff Pairs in an Array.py
βΒ Β βββ __0611__Valid Triangle Number.py
βΒ Β βββ __0643__Maximum Average Subarray I.py
βΒ Β βββ __0647__Palindromic Substrings.py
βΒ Β βββ __0653__Two Sum IV - Input is a BST.py
βΒ Β βββ __0680__Valid Palindrome II.py
βΒ Β βββ __0777__Swap Adjacent in LR String.py
βΒ Β βββ __0904__Fruit Into Baskets.py
βΒ Β βββ __0905__Sort Array By Parity.py
βΒ Β βββ __0912__Sort an Array.py
βΒ Β βββ __0922__Sort Array By Parity II.py
βΒ Β βββ __0930__Binary Subarrays With Sum.py
βΒ Β βββ __0969__Pancake Sorting.py
βΒ Β βββ __1099__Two Sum Less Than K.py
βΒ Β βββ __1214__Two Sum BSTs.py
βΒ Β βββ __1248__Count Number of Nice Subarrays.py
βΒ Β βββ __1332__Remove Palindromic Subsequences.py
βΒ Β βββ __1358__Number of Substrings Containing All Three Characters.py
βΒ Β βββ __1423__Maximum Points You Can Obtain from Cards.py
βΒ Β βββ __1658__Minimum Operations to Reduce X to Zero.py
βΒ Β βββ __1679__Max Number of K-Sum Pairs.py
βΒ Β βββ __1695__Maximum Erasure Value.py
βΒ Β βββ __1711__Count Good Meals.py
βΒ Β βββ __1838__Frequency of the Most Frequent Element.py
βΒ Β βββ __2155__All Divisions With the Highest Score of a Binary Array.py
βββ UnionFind
βΒ Β βββ DisjointSet.py
βΒ Β βββ __0128__Longest Consecutive Sequence.py
βΒ Β βββ __0721__Accounts Merge.py
βββ _Experiment
βΒ Β βββ 20210616_currency_rate.py
βΒ Β βββ ArrayList.py
βΒ Β βββ LinkedList.py
βΒ Β βββ UnitTest.py
βΒ Β βββ UnrolledLinkedList.py
βΒ Β βββ UnrolledLinkedList_Benchmark.py
βΒ Β βββ __pycache__
βΒ Β βββ ArrayList.cpython-37.pyc
βΒ Β βββ LinkedList.cpython-37.pyc
βΒ Β βββ UnrolledLinkedList.cpython-37.pyc
βΒ Β βββ UnrolledLinkedList.cpython-39.pyc
βββ _Practice
βΒ Β βββ AZ
βΒ Β βΒ Β βββ ImplementQueue.py
βΒ Β βΒ Β βββ MaxSubarrayLength.py
βΒ Β βΒ Β βββ MinPathOfMatrix.py
βΒ Β βΒ Β βββ s1_BalancePoints.py
βΒ Β βΒ Β βββ s3_Advertiser.py
βΒ Β βΒ Β βββ s4_PurchaseAttribution.py
βΒ Β βββ GL
βΒ Β βΒ Β βββ TriangleChecker.py
βΒ Β βββ ID
βΒ Β βΒ Β βββ Autocomplete.py
βΒ Β βΒ Β βββ DiceSum.java
βΒ Β βΒ Β βββ ExpiredJob.py
βΒ Β βΒ Β βββ GitCommits.py
βΒ Β βΒ Β βββ MusicShuffle.py
βΒ Β βΒ Β βββ NormalizeTitle.py
βΒ Β βΒ Β βββ PythonValidator.py
βΒ Β βΒ Β βββ Quantile.py
βΒ Β βΒ Β βββ RootToLeafMinCost.py
βΒ Β βΒ Β βββ StreamAverage.py
βΒ Β βΒ Β βββ SummaryRange.py
βΒ Β βΒ Β βββ UnrolledLinkedList.py
βΒ Β βΒ Β βββ WordDistance.py
βΒ Β βββ ID-KT
βΒ Β βΒ Β βββ Ancestor.py
βΒ Β βΒ Β βββ BadgeAccess.py
βΒ Β βΒ Β βββ Calculator.py
βΒ Β βΒ Β βββ Courses.py
βΒ Β βΒ Β βββ Domain.py
βΒ Β βΒ Β βββ Meeting.py
βΒ Β βΒ Β βββ Nonogram.py
βΒ Β βΒ Β βββ RectangleFinder.py
βΒ Β βΒ Β βββ Reflow.py
βΒ Β βΒ Β βββ SparseVector.py
βΒ Β βΒ Β βββ SparseVectorExtend.py
βΒ Β βΒ Β βββ Treasure.py
βΒ Β βΒ Β βββ WordSearch.py
βΒ Β βΒ Β βββ WordStep.py
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ SparseVector.cpython-39.pyc
βΒ Β βββ KT-KT
βΒ Β βΒ Β βββ FindEmbeddedWord.py
βΒ Β βΒ Β βββ FindWordLocation.py
βΒ Β βββ Mock
βΒ Β βΒ Β βββ BracketMatch.py
βΒ Β βΒ Β βββ FloatCombinationSum.py
βΒ Β βΒ Β βββ NumOfPathsToDest.py
βΒ Β βΒ Β βββ heap.py
βΒ Β βββ SN
βΒ Β βΒ Β βββ Countries.py
βΒ Β βΒ Β βββ SwitchingArray.py
βΒ Β βββ SPFY
βΒ Β βΒ Β βββ FindCityByOrder.py
βΒ Β βΒ Β βββ GuessWord.py
βΒ Β βΒ Β βββ RobotEmulator.py
βΒ Β βΒ Β βββ VO_Robot.py
βΒ Β βΒ Β βββ VO_TextManipulator.py
βΒ Β βΒ Β βββ VimOperator.py
βΒ Β βββ WP.py
βΒ Β βββ BiggestNumber.py
βββ _Template
βββ BinarySearch.py
βββ BinarySearchRange.py
βββ DFS.py
βββ DisjointSet.py
βββ DisjointSet.pyc
βββ TopK.py
βββ Trie.py
βββ __pycache__
βββ DisjointSet.cpython-39.pyc
41 directories, 577 files
=====================================
============= Leetcode ==============
=====================================
0001 Two Sum
0002 Add Two Numbers
0003 Longest Substring Without Repeating Characters
0004 Median of Two Sorted Arrays
0005 Longest Palindromic Substring
0009 Palindrome Number
0010 Regular Expression Matching
0011 Container With Most Water
0014 Longest Common Prefix
0015 3Sum
0016 3Sum Closest
0017 Letter Combinations of a Phone Number
0018 4Sum
0019 Remove Nth Node From End of List
0020 Valid Parentheses
0021 Merge Two Sorted Lists
0022 Generate Parentheses
0023 Merge k Sorted Lists
0024 Swap Nodes in Pairs
0029 Divide Two Integers
0031 Next Permutation
0032 Longest Valid Parentheses
0033 Search in Rotated Sorted Array
0034 Find First and Last Position of Element in Sorted Array
0035 Search Insert Position
0036 Valid Sudoku
0037 Sudoku Solver
0039 Combination Sum
0040 Combination Sum II
0042 Trapping Rain Water
0044 Wildcard Matching
0045 Jump Game II
0046 Permutations
0047 Permutations II
0048 Rotate Image
0049 Group Anagrams
0050 Pow(x, n)
0051 N-Queens
0052 N-Queens II
0053 Maximum Subarray
0054 Spiral Matrix
0055 Jump Game
0056 Merge Intervals
0057 Insert Interval
0059 Spiral Matrix II
0061 Rotate List
0062 Unique Paths
0063 Unique Paths II
0064 Minimum Path Sum
0068 Text Justification
0069 Sqrt(x)
0070 Climbing Stairs
0071 Simplify Path
0073 Set Matrix Zeroes
0074 Search a 2D Matrix
0075 Sort Colors
0077 Combinations
0078 Subsets
0079 Word Search
0080 Remove Duplicates from Sorted Array II
0081 Search in Rotated Sorted Array II
0082 Remove Duplicates from Sorted List II
0083 Remove Duplicates from Sorted List
0084 Largest Rectangle in Histogram
0085 Maximal Rectangle
0086 Partition List
0088 Merge Sorted Array
0089 Gray Code
0090 Subsets II
0092 Reverse Linked List II
0094 Binary Tree Inorder Traversal
0095 Unique Binary Search Trees II
0096 Unique Binary Search Trees
0098 Validate Binary Search Tree
0099 Recover Binary Search Tree
0100 Same Tree
0101 Symmetric Tree
0102 Binary Tree Level Order Traversal
0103 Binary Tree Zigzag Level Order Traversal
0104 Maximum Depth of Binary Tree
0105 Construct Binary Tree from Preorder and Inorder Traversal
0106 Construct Binary Tree from Inorder and Postorder Traversal
0107 Binary Tree Level Order Traversal II
0108 Convert Sorted Array to Binary Search Tree
0109 Convert Sorted List to Binary Search Tree
0110 Balanced Binary Tree
0111 Minimum Depth of Binary Tree
0112 Path Sum
0113 Path Sum II
0114 Flatten Binary Tree to Linked List
0116 Populating Next Right Pointers in Each Node
0117 Populating Next Right Pointers in Each Node II
0118 Pascal's Triangle
0119 Pascal's Triangle II
0120 Triangle
0121 Best Time to Buy and Sell Stock
0122 Best Time to Buy and Sell Stock II
0123 Best Time to Buy and Sell Stock III
0124 Binary Tree Maximum Path Sum
0125 Valid Palindrome
0126 Word Ladder II
0127 Word Ladder
0128 Longest Consecutive Sequence
0129 Sum Root to Leaf Numbers
0130 Surrounded Regions
0131 Palindrome Partitioning
0133 Clone Graph
0134 Gas Station
0136 Single Number
0137 Single Number II
0138 Copy List with Random Pointer
0139 Word Break
0141 Linked List Cycle
0142 Linked List Cycle II
0144 Binary Tree Preorder Traversal
0146 LRU Cache
0148 Sort List
0150 Evaluate Reverse Polish Notation
0151 Reverse Words in a String
0152 Maximum Product Subarray
0153 Find Minimum in Rotated Sorted Array
0155 Min Stack
0159 Longest Substring with At Most Two Distinct Characters
0160 Intersection of Two Linked Lists
0161 One Edit Distance
0162 Find Peak Element
0167 Two Sum II - Input Array Is Sorted
0168 Excel Sheet Column Title
0170 Two Sum III - Data structure design
0171 Excel Sheet Column Number
0173 Binary Search Tree Iterator
0179 Largest Number
0187 Repeated DNA Sequences
0189 Rotate Array
0191 Number of 1 Bits
0198 House Robber
0199 Binary Tree Right Side View
0200 Number of Islands
0206 Reverse Linked List
0207 Course Schedule
0208 Implement Trie (Prefix Tree)
0209 Minimum Size Subarray Sum
0210 Course Schedule II
0211 Design Add and Search Words Data Structure
0212 Word Search II
0215 Kth Largest Element in an Array
0216 Combination Sum III
0221 Maximal Square
0222 Count Complete Tree Nodes
0223 Rectangle Area
0224 Basic Calculator
0225 Implement Stack using Queues
0226 Invert Binary Tree
0227 Basic Calculator II
0228 Summary Ranges
0230 Kth Smallest Element in a BST
0232 Implement Queue using Stacks
0234 Palindrome Linked List
0235 Lowest Common Ancestor of a Binary Search Tree
0236 Lowest Common Ancestor of a Binary Tree
0237 Delete Node in a Linked List
0238 Product of Array Except Self
0239 Sliding Window Maximum
0240 Search a 2D Matrix II
0241 Different Ways to Add Parentheses
0242 Valid Anagram
0243 Shortest Word Distance
0244 Shortest Word Distance II
0245 Shortest Word Distance III
0247 Strobogrammatic Number II
0249 Group Shifted Strings
0252 Meeting Rooms
0253 Meeting Rooms II
0256 Paint House
0257 Binary Tree Paths
0259 3Sum Smaller
0260 Single Number III
0261 Graph Valid Tree
0263 Ugly Number
0264 Ugly Number II
0266 Palindrome Permutation
0267 Palindrome Permutation II
0268 Missing Number
0270 Closest Binary Search Tree Value
0277 Find the Celebrity
0278 First Bad Version
0279 Perfect Squares
0283 Move Zeroes
0284 Peeking Iterator
0285 Inorder Successor in BST
0286 Walls and Gates
0287 Find the Duplicate Number
0289 Game of Life
0290 Word Pattern
0291 Word Pattern II
0295 Find Median from Data Stream
0297 Serialize and Deserialize Binary Tree
0300 Longest Increasing Subsequence
0303 Range Sum Query - Immutable
0304 Range Sum Query 2D - Immutable
0305 Number of Islands II
0310 Minimum Height Trees
0314 Binary Tree Vertical Order Traversal
0316 Remove Duplicate Letters
0318 Maximum Product of Word Lengths
0322 Coin Change
0323 Number of Connected Components in an Undirected Graph
0329 Longest Increasing Path in a Matrix
0332 Reconstruct Itinerary
0333 Largest BST Subtree
0338 Counting Bits
0340 Longest Substring with At Most K Distinct Characters
0341 Flatten Nested List Iterator
0346 Moving Average from Data Stream
0347 Top K Frequent Elements
0348 Design Tic-Tac-Toe
0349 Intersection of Two Arrays
0350 Intersection of Two Arrays II
0352 Data Stream as Disjoint Intervals
0354 Russian Doll Envelopes
0362 Design Hit Counter
0366 Find Leaves of Binary Tree
0368 Largest Divisible Subset
0370 Range Addition
0377 Combination Sum IV
0378 Kth Smallest Element in a Sorted Matrix
0380 Insert Delete GetRandom O(1)
0384 Shuffle an Array
0387 First Unique Character in a String
0392 Is Subsequence
0394 Decode String
0395 Longest Substring with At Least K Repeating Characters
0399 Evaluate Division
0401 Binary Watch
0406 Queue Reconstruction by Height
0409 Longest Palindrome
0412 Fizz Buzz
0416 Partition Equal Subset Sum
0417 Pacific Atlantic Water Flow
0419 Battleships in a Board
0423 Reconstruct Original Digits from English
0429 N-ary Tree Level Order Traversal
0435 Non-overlapping Intervals
0437 Path Sum III
0438 Find All Anagrams in a String
0441 Arranging Coins
0449 Serialize and Deserialize BST
0450 Delete Node in a BST
0453 Minimum Moves to Equal Array Elements
0456 132 Pattern
0459 Repeated Substring Pattern
0462 Minimum Moves to Equal Array Elements II
0474 Ones and Zeroes
0480 Sliding Window Median
0484 Find Permutation
0490 The Maze
0494 Target Sum
0496 Next Greater Element I
0498 Diagonal Traverse
0499 The Maze III
0503 Next Greater Element II
0505 The Maze II
0509 Fibonacci Number
0510 Inorder Successor in BST II
0513 Find Bottom Left Tree Value
0515 Find Largest Value in Each Tree Row
0516 Longest Palindromic Subsequence
0518 Coin Change 2
0523 Continuous Subarray Sum
0528 Random Pick with Weight
0532 K-diff Pairs in an Array
0535 Encode and Decode TinyURL
0538 Convert BST to Greater Tree
0539 Minimum Time Difference
0540 Single Element in a Sorted Array
0542 01 Matrix
0543 Diameter of Binary Tree
0547 Number of Provinces
0559 Maximum Depth of N-ary Tree
0560 Subarray Sum Equals K
0563 Binary Tree Tilt
0572 Subtree of Another Tree
0576 Out of Boundary Paths
0581 Shortest Unsorted Continuous Subarray
0583 Delete Operation for Two Strings
0593 Valid Square
0611 Valid Triangle Number
0617 Merge Two Binary Trees
0630 Course Schedule III
0643 Maximum Average Subarray I
0646 Maximum Length of Pair Chain
0647 Palindromic Substrings
0648 Replace Words
0653 Two Sum IV - Input is a BST
0658 Find K Closest Elements
0662 Maximum Width of Binary Tree
0663 Equal Tree Partition
0669 Trim a Binary Search Tree
0670 Maximum Swap
0677 Map Sum Pairs
0680 Valid Palindrome II
0682 Baseball Game
0684 Redundant Connection
0687 Longest Univalue Path
0688 Knight Probability in Chessboard
0690 Employee Importance
0692 Top K Frequent Words
0694 Number of Distinct Islands
0695 Max Area of Island
0700 Search in a Binary Search Tree
0701 Insert into a Binary Search Tree
0702 Search in a Sorted Array of Unknown Size
0703 Kth Largest Element in a Stream
0704 Binary Search
0705 Design HashSet
0706 Design HashMap
0718 Maximum Length of Repeated Subarray
0721 Accounts Merge
0724 Find Pivot Index
0726 Number of Atoms
0735 Asteroid Collision
0739 Daily Temperatures
0740 Delete and Earn
0743 Network Delay Time
0752 Open the Lock
0754 Reach a Number
0760 Find Anagram Mappings
0767 Reorganize String
0776 Split BST
0777 Swap Adjacent in LR String
0784 Letter Case Permutation
0785 Is Graph Bipartite?
0787 Cheapest Flights Within K Stops
0792 Number of Matching Subsequences
0797 All Paths From Source to Target
0811 Subdomain Visit Count
0820 Short Encoding of Words
0841 Keys and Rooms
0844 Backspace String Compare
0862 Shortest Subarray with Sum at Least K
0863 All Nodes Distance K in Binary Tree
0867 Transpose Matrix
0875 Koko Eating Bananas
0889 Construct Binary Tree from Preorder and Postorder Traversal
0896 Monotonic Array
0897 Increasing Order Search Tree
0901 Online Stock Span
0904 Fruit Into Baskets
0905 Sort Array By Parity
0907 Sum of Subarray Minimums
0909 Snakes and Ladders
0912 Sort an Array
0922 Sort Array By Parity II
0926 Flip String to Monotone Increasing
0930 Binary Subarrays With Sum
0931 Minimum Falling Path Sum
0934 Shortest Bridge
0935 Knight Dialer
0937 Reorder Data in Log Files
0938 Range Sum of BST
0947 Most Stones Removed with Same Row or Column
0954 Array of Doubled Pairs
0958 Check Completeness of a Binary Tree
0968 Binary Tree Cameras
0969 Pancake Sorting
0973 K Closest Points to Origin
0975 Odd Even Jump
0979 Distribute Coins in Binary Tree
0981 Time Based Key-Value Store
0983 Minimum Cost For Tickets
0985 Sum of Even Numbers After Queries
0986 Interval List Intersections
0987 Vertical Order Traversal of a Binary Tree
0994 Rotting Oranges
1008 Construct Binary Search Tree from Preorder Traversal
1011 Capacity To Ship Packages Within D Days
1014 Best Sightseeing Pair
1020 Number of Enclaves
1025 Divisor Game
1027 Longest Arithmetic Subsequence
1029 Two City Scheduling
1038 Binary Search Tree to Greater Sum Tree
1041 Robot Bounded In Circle
1046 Last Stone Weight
1048 Longest String Chain
1049 Last Stone Weight II
1059 All Paths from Source Lead to Destination
1087 Brace Expansion
1091 Shortest Path in Binary Matrix
1094 Car Pooling
1096 Brace Expansion II
1099 Two Sum Less Than K
1110 Delete Nodes And Return Forest
1130 Minimum Cost Tree From Leaf Values
1137 N-th Tribonacci Number
1143 Longest Common Subsequence
1146 Snapshot Array
1160 Find Words That Can Be Formed by Characters
1161 Maximum Level Sum of a Binary Tree
1162 As Far from Land as Possible
1165 Single-Row Keyboard
1166 Design File System
1167 Minimum Cost to Connect Sticks
1182 Shortest Distance to Target Color
1192 Critical Connections in a Network
1197 Minimum Knight Moves
1198 Find Smallest Common Element in All Rows
1202 Smallest String With Swaps
1209 Remove All Adjacent Duplicates in String II
1214 Two Sum BSTs
1219 Path with Maximum Gold
1235 Maximum Profit in Job Scheduling
1248 Count Number of Nice Subarrays
1254 Number of Closed Islands
1260 Shift 2D Grid
1268 Search Suggestions System
1275 Find Winner on a Tic Tac Toe Game
1277 Count Square Submatrices with All Ones
1283 Find the Smallest Divisor Given a Threshold
1289 Minimum Falling Path Sum II
1302 Deepest Leaves Sum
1305 All Elements in Two Binary Search Trees
1306 Jump Game III
1319 Number of Operations to Make Network Connected
1332 Remove Palindromic Subsequences
1342 Number of Steps to Reduce a Number to Zero
1344 Angle Between Hands of a Clock
1358 Number of Substrings Containing All Three Characters
1361 Validate Binary Tree Nodes
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1382 Balance a Binary Search Tree
1391 Check if There is a Valid Path in a Grid
1395 Count Number of Teams
1396 Design Underground System
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1423 Maximum Points You Can Obtain from Cards
1429 First Unique Number
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1443 Minimum Time to Collect All Apples in a Tree
1448 Count Good Nodes in Binary Tree
1461 Check If a String Contains All Binary Codes of Size K
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1475 Final Prices With a Special Discount in a Shop
1480 Running Sum of 1d Array
1525 Number of Good Ways to Split a String
1530 Number of Good Leaf Nodes Pairs
1557 Minimum Number of Vertices to Reach All Nodes
1567 Maximum Length of Subarray With Positive Product
1570 Dot Product of Two Sparse Vectors
1584 Min Cost to Connect All Points
1593 Split a String Into the Max Number of Unique Substrings
1603 Design Parking System
1631 Path With Minimum Effort
1641 Count Sorted Vowel Strings
1642 Furthest Building You Can Reach
1644 Lowest Common Ancestor of a Binary Tree II
1650 Lowest Common Ancestor of a Binary Tree III
1658 Minimum Operations to Reduce X to Zero
1679 Max Number of K-Sum Pairs
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers
1695 Maximum Erasure Value
1696 Jump Game VI
1706 Where Will the Ball Fall
1710 Maximum Units on a Truck
1711 Count Good Meals
1721 Swapping Nodes in a Linked List
1730 Shortest Path to Get Food
1762 Buildings With an Ocean View
1774 Closest Dessert Cost
1804 Implement Trie II (Prefix Tree)
1838 Frequency of the Most Frequent Element
1861 Rotating the Box
1905 Count Sub Islands
1937 Maximum Number of Points with Cost
1971 Find if Path Exists in Graph
2007 Find Original Array From Doubled Array
2008 Maximum Earnings From Taxi
2013 Detect Squares
2093 Minimum Cost to Reach City With Discounts
2104 Sum of Subarray Ranges
2154 Keep Multiplying Found Values by Two
2155 All Divisions With the Highest Score of a Binary Array
2156 Find Substring With Given Hash Value
2215 Find the Difference of Two Arrays
2216 Minimum Deletions to Make Array Beautiful
2217 Find Palindrome With Fixed Length
2218 Maximum Value of K Coins From Piles
2224 Minimum Number of Operations to Convert Time
2225 Find Players With Zero or One Losses
2226 Maximum Candies Allocated to K Children
2227 Encrypt and Decrypt Strings
2231 Largest Number After Digit Swaps by Parity
2232 Minimize Result by Adding Parentheses to Expression
2233 Maximum Product After K Increments
2248 Intersection of Multiple Arrays
2249 Count Lattice Points Inside a Circle
2250 Count Number of Rectangles Containing Each Point
2251 Number of Flowers in Full Bloom
2255 Count Prefixes of a Given String
2256 Minimum Average Difference
2257 Count Unguarded Cells in the Grid
2258 Escape the Spreading Fire
2269 Find the K-Beauty of a Number
2270 Number of Ways to Split Array
2273 Find Resultant Array After Removing Anagrams
2274 Maximum Consecutive Floors Without Special Floors
2275 Largest Combination With Bitwise AND Greater Than Zero
=====================================
Solved / Total (Easy) : 110 / 586
Solved / Total (Medium): 354 / 1257
Solved / Total (Hard) : 43 / 518
Solved / Total (All) : 507 / 2361
Total Score : 1387
=====================================
ianlai/Algorithm-Python
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||
Β | Β | |||

