Skip to content

jyztintan/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

LeetCode Stats 50 Day Challenge 100 Day Challenge

ID Problem Name Solution
1 Two Sum
2 Add Two Numbers
3 Longest Substring without Repeating Characters
4 Median of Two Sorted Arrays
5 Longest Palindromic Substring
6 Zigzag Conversion
7 Reverse Integer
8 String to Integer (atoi)
9 Palindrome Number
10 Regular Expression Matching
11 Container With Most Water
13 Roman to Integer
15 3Sum
17 Letter Combinations of a Phone Number
19 Remove Nth Node from End of List
20 Valid Parentheses
21 Merge Two Sorted Lists
22 Generate Parentheses
23 Merge k Sorted Lists
24 Swap Nodes in Pairs
25 Reverse Nodes in k-Group
33 Search in Rotated Sorted Array
36 Valid Sudoku
39 Combination Sum
40 Combination Sum II
42 Trapping Rain Water
45 Jump Game II
46 Permutations
49 Group Anagrams
51 N-Queens
53 Maximum Subarray
54 Spiral Matrix
55 Jump Game
56 Merge Intervals
57 Insert Interval
59 Spiral Matrix II
61 Rotate List
62 Unique Paths
70 Climbing Stairs
72 Edit Distance
74 Search a 2D Matrix
75 Sort Colours
76 Minimum Window Substring
78 Subsets
79 Word Search
84 Largest Rectangle in Histogram
85 Maximal Rectangle
88 Merge Sorted Array
90 Subsets II
91 Decode Ways
94 Binary Tree Inorder Traversal
97 Interleaving String
98 Validate Binary Search Tree
100 Same Tree
102 Binary Tree Level Order Traversal
104 Maximum Depth of Binary Tree
105 Construct Binary Tree from Preorder and Inorder Traversal
106 Construct Binary Tree from Postorder and Inorder Traversal
109 Convert Sorted List to Binary Search Tree
110 Balanced Binary Tree
112 Path Sum
113 Path Sum II
114 Flatten Binary Tree to Linked List
115 Distinct Subsequences
121 Best Time to Buy and Sell Stock
124 Binary Tree Maximum Path Sum
125 Valid Palindrome
127 Word Ladder
128 Longest Consecutive Sequence
130 Surrounded Regions
131 Palindrome Partitioning
133 Clone Graph
134 Gas Station
138 Copy List with Random Pointer
139 Word Break
141 Linked List Cycle
143 Reorder List
144 Binary Tree Preorder Traversal
145 Binary Tree Postorder Traversal
146 LRU Cache
150 Evaluate Reverse Polish Notation
152 Maximum Product Subarray
153 Find Minimum in Rotated Sorted Array
155 Min Stack
167 Two Sum II (Input Array is Sorted)
169 Majority Element
175 Combine Two Tables
179 Largest Number
181 Employees Earning More Than Their Managers
197 Rising Temperature
198 House Robber
199 Binary Tree Right Side View
200 Number of Islands
206 Reverse Linked List
207 Course Schedule
208 Implement Trie (Prefix Tree)
210 Course Schedule II
211 Design Add and Search Words Data Structure
212 Word Search II
213 House Robber II
215 Kth Largest Element in an Array
217 Contains Duplicate
226 Invert Binary Tree
230 Kth Smallest Element in a BST
235 Lowest Common Ancestor of a Binary Search Tree
235 Lowest Common Ancestor of a Binary Tree
238 Product of Array Except Self
239 Sliding Window Maximum
241 Different Ways to Add Parentheses
242 Valid Anagram
252 Meeting Rooms
253 Meeting Rooms II
257 Binary Tree Paths
261 Graph Valid Tree
264 Ugly Number II
271 Encode and Decode Strings
273 Integer to English Words
283 Move Zeroes
286 Walls and Gates
287 Find the Duplicate Number
295 Find Median from Data Stream
297 Serialize and Deserialize Binary Tree
300 Longest Increasing Subsequence
309 Best Time to Buy and Sell Stock with Cooldown
312 Burst Balloons
322 Coin Change
323 Number of Connected Components In An Undirected Graph
329 Longest Increasing Path in a Matrix
330 Patching Array
338 Counting Bits
347 Top K Frequent Elements
349 Intersection of Two Arrays
350 Intersection of Two Arrays II
355 Design Twitter
386 Lexicographical Numbers
394 Decode String
416 Partition Equal Subset Sum
417 Pacific Atlantic Water Flow
424 Longest Repeating Character Replacement
429 N-ary Tree Level Order Traversal
432 All O`one Data Structure
435 Non-Overlapping Intervals
438 Find All Anagrams in a String
476 Number Complement
494 Target Sum
502 IPO
518 Coin Change II
535 Encode & Decode TinyURL
538 Convert BST to Greater Tree
539 Minimum Time Difference
543 Diameter of Binary Tree
547 Number of Provinces
564 Find the Closest Palindrome
567 Permutation in String
570 Managers with at Least 5 Direct Reports
572 Subtree of Another Tree
577 Employee Bonus
584 Find Customer Referee
589 N-ary Tree Preorder Traversal
590 N-ary Tree Postorder Traversal
592 Fraction Addition and Subtraction
595 Big Countries
621 Task Scheduler
624 Maximum Distance in Arrays
632 Smallest Range Covering Elements from K Lists
633 Sum of Square Numbers
647 Palindromic Substrings
650 2 Keys Keyboard
653 Two Sum IV - Input is a BST
664 Strange Printer
672 Bulb Switcher II
673 Maximum Swap
678 Valid Parenthesis String
684 Redundant Connection
685 Redundant Connection II
695 Max Area of Island
703 Kth Largest Element in a Stream
704 Binary Search
713 Subarray Product Less Than K
719 Find K-th Smallest Pair Distance
725 Split Linked List in Parts
726 Number of Atoms
729 My Calendar I
731 My Calendar II
739 Daily Temperature
746 Min Cost Climbing Stairs
763 Partition Labels
796 Rotate String
826 Most Profit Assigning Work
840 Magic Squares In Grid
846 Hand of Straights
853 Car Fleet
860 Lemonade Change
874 Walking Robot Simulation
875 Koko Eating Bananas
876 Middle of the Linked List
884 Uncommon Words from Two Sentences
885 Spiral Matrix III
889 Construct Binary Tree from Preorder and Postorder Traversal
912 Sort an Array
921 Minimum Add to Make Parentheses Valid
945 Minimum Increment to Make Array Unique
947 Most Stones Removed with Same Row or Column
951 Flip Equivalent Binary Trees
959 Regions Cut by Slashes
962 Maximum Width Ramp
973 K Closest Points to Origin
974 Subarray Sums Divisible by K
981 Time Based Key-Value Store
994 Rotting Oranges
995 Minimum Number of K Consecutive Bit Flips
1009 Complement of Base 10 Integer
1038 Binary Search Tree to Greater Sum Tree
1046 Last Stone Weight
1052 Grumpy Bookstore Owner
1068 Product Sales Analysis I
1105 Filling Bookcase Shelves
1106 Parsing A Boolean Expression
1110 Delete Nodes And Return Forest
1122 Relative Sort Array
1133 Largest Unique Number
1140 Stone Game II
1143 Longest Common Subsequence
1148 Article Views I
1190 Reverse Substrings Between Each Pair of Parentheses
1213 Intersection of Three Sorted Arrays
1229 Meeting Scheduler
1233 Remove Sub-Folders from the Filesystem
1248 Count Number of Nice Subarrays
1257 Smallest Common Region
1268 Search Suggestions System
1277 Count Square Submatrices with All Ones
1280 Students and Examinations
1293 Shortest Path in a Grid with Obstacles Elimination
1310 XOR Queries of a Subarray
1331 Rank Transform of an Array
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance
1342 Number of Steps to Reduce a Number to Zero
1367 Linked List in Binary Tree
1371 Find the Longest Substring Containing Vowels in Even Counts
1378 Replace Employee ID with the Unique Identifier
1380 Lucky Numbers in a Matrix
1381 Design a Stack With Increment Operation
1382 Balance a Binary Search Tree
1395 Count Number of Teams
1405 Longest Happy String
1429 First Unique Number
1438 Longest Continuous Subarray with Limit
1448 Count Good Nodes in Binary Tree
1460 Make Two Arrays Equal by Reversing Subarrays
1480 Running Sum of 1d Array
1497 Check If Array Pairs Are Divisible by k
1482 Minimum Number of Days to Make m Bouquets
1508 Range Sum of Sorted Subarray Sums
1509 Minimum Difference Between Largest and Smallest Value in Three Moves
1514 Path with Maximum Probability
1518 Water Bottles
1530 Number of Good Leaf Nodes Pairs
1545 Find Kth Bit in Nth Binary String
1550 Three Consecutive Odds
1552 Magnetic Force Between Two Balls
1568 Minimum Number of Days to Disconnect Island
1574 Shortest Subarray to be Removed to Make Array Sorted
1579 Remove Max Number of Edges to Keep Graph Fully Traversable
1581 Customer Who Visited but Did Not Make Any Transactions
1590 Make Sum Divisible by P
1593 Split a String Into the Max Number of Unique Substrings
1598 Crawler Log Folder
1605 Find Valid Matrix Given Row and Column Sums
1636 Sort Array by Increasing Frequency
1653 Minimum Deletions to Make String Balanced
1661 Average Time of Process Per Machine
1671 Minimum Number of Removals to Make Mountain Array
1683 Invalid Tweets
1684 Count the Number of Consistent Strings
1701 Average Waiting Time
1717 Maximum Score From Removing Substrings
1757 Recyclable and Low Fat Products
1768 Merge Strings Alternately
1791 Find Center of Star Graph
1813 Sentence Similarity III
1823 Find the Winner of the Circular Game
1829 Maximum XOR for Each Query
1851 Minimum Interval to Include Each Query
1894 Find the Student that Will Replace the Chalk
1899 Merge Triplets to Form Target Triplet
1905 Count Sub Islands
1934 Confirmation Rate
1937 Maximum Number of Points with Cost
1942 The Number of the Smallest Unoccupied Chair
1945 Sum of Digits of String After Convert
1957 Delete Characters to Make Fancy String
1963 Minimum Number of Swaps to Make the String Balanced
2022 Convert 1D Array Into 2D Array
2028 Find Missing Observations
2037 Minimum Number of Moves to Seat Everyone
2045 Second Minimum Time to Reach Destination
2053 Kth Distinct String in an Array
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points
2064 Minimized Maximum of Products Distributed to Any Store
2070 Most Beautiful Item for Each Query
2096 Step-By-Step Directions From a Binary Tree Node to Another
2107 Number of Unique Flavors After Sharing K Candies
2134 Minimum Swaps to Group All 1's Together II
2181 Merge Nodes in Between Zeros
2191 Sort the Jumbled Numbers
2192 All Ancestors of a Node in a Directed Acyclic Graph
2196 Create Binary Tree From Descriptions
2220 Minimum Bit Flips to Convert Number
2248 Intersection of Multiple Arrays
2275 Largest Combination With Bitwise AND Greater Than Zero
2285 Maximum Total Importance of Roads
2326 Spiral Matrix IV
2392 Build a Matrix With Conditions
2406 Divide Intervals Into Minimum Number of Groups
2416 Sum of Prefix Scores of Strings
2418 Sort the People
2419 Longest Subarray With Maximum Bitwise AND
2458 Height of Binary Tree After Subtree Removal Queries
2463 Minimum Total Distance Traveled
2490 Circular Sentence
2491 Divide Players Into Teams of Equal Skill
2501 Longest Square Streak in an Array
2530 Maximal Score After Applying K Operations
2563 Count the Number of Fair Pairs
2582 Pass the Pillow
2583 Kth Largest Sum in a Binary Tree
2601 Prime Subtraction Operation
2641 Cousins in Binary Tree II
2678 Number of Senior Citizens
2684 Maximum Number of Moves in a Grid
2699 Modify Graph Edge Weights
2707 Extra Characters in a String
2751 Robot Collisions
2807 Insert Greatest Common Divisors in Linked List
2914 Minimum Number of Changes to Make Binary String Beautiful
2938 Separate Black and White Balls
2969 Minimum String Length After Removing Substrings
2976 Minimum Cost to Convert String I
3011 Find if Array Can Be Sorted
3016 Minimum Number of Pushes to Type Word II
3024 Type of Triangle
3028 Ant on the Boundary
3043 Find the Length of the Longest Common Prefix
3097 Shortest Subarray With OR at Least K II
3133 Minimum Array End
3153 Sum of Digit Differences of All Pairs
3163 String Compression III
3217 Delete Nodes From Linked List Present in Array
3318 Find X-Sum of All K-Long Subarrays I

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published