SHA65536 / LeetcodeDaily

My Leetcode Solutions With Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Leetcode Journey

This is my Leetcode journey, I work on this everyday, I don't do 1 problem a day, but I atleast try to work on it once a day :D

Each problem is in it's own directory, with test files. There are helper packages in the helpers directory.

Problems

Number Name Link Status
0001 Two Sum My Solution
0002 Add Two Numbers My Solution
0003 Longest Substring Without Repeating Characters My Solution
0004 Median of Two Sorted Arrays My Solution
0005 Longest Palindromic Substring My Solution
0006 ZigZag Conversion My Solution
0007 Reverse Integer My Solution
0008 String to Integer (atoi) My Solution
0009 Palindrome Number My Solution
0010 Regular Expression Matching My Solution
0011 Container With Most Water My Solution
0012 Integer to Roman My Solution
0013 Roman to Int My Solution
0014 Longest Common Prefix My Solution
0015 Three Sum My Solution
0016 Three Sum Closest My Solution
0017 Letter Combinations of a Phone Number My Solution
0018 Four Sum My Solution
0019 Remove Nth Node From End of List My Solution
0020 Valid Parentheses My Solution
0021 Merge Two Lists My Solution
0022 Generate Parentheses My Solution
0023 Merge k Sorted Lists My Solution
0024 Swap Nodes in Pairs My Solution
0025 Reverse Nodes in k-Group My Solution
0026 Remove Duplicates from Sorted Array My Solution
0027 Remove Element My Solution
0028 Implement strStr() My Solution
0030 Substring with Concatenation of All Words My Solution
0031 Next Permutation My Solution
0032 Longest Valid Parentheses My Solution
0033 Search in Rotated Sorted Array My Solution
0034 Find First and Last Position of Element in Sorted Array My Solution
0035 Search Insert Position My Solution
0036 Valid Sudoku My Solution
0037 Sudoku Solver My Solution
0038 Count and Say My Solution
0039 Combination Sum My Solution
0040 Combination Sum II My Solution
0042 Trapping Rain Water My Solution
0043 Multiply Strings My Solution
0044 Wildcard Matching My Solution
0045 Jump Game II My Solution
0046 Permutations My Solution
0047 Permutations II My Solution
0048 Rotate Image My Solution
0049 Group Anagrams My Solution
0050 Pow(x, n) My Solution
0051 N-Queens My Solution
0052 N-Queens II My Solution
0054 Spiral Matrix My Solution
0055 Jump Game My Solution
0057 Insert Interval My Solution
0058 Length of Last Word My Solution
0059 Spiral Matrix II My Solution
0062 Unique Paths My Solution
0063 Unique Paths II My Solution
0064 Minimum Path Sum My Solution
0066 Plus One My Solution
0067 Add Binary My Solution
0068 Text Justification My Solution
0069 Sqrt(x) My Solution
0070 Climbing Stairs My Solution
0071 Simplify Path My Solution
0072 Edit Distance My Solution
0074 Search a 2D Matrix My Solution
0076 Minimum Window Substring My Solution
0077 Combinations My Solution
0079 Word Search My Solution
0081 Search in Rotated Sorted Array II My Solution
0083 Remove Duplicates from Sorted List My Solution
0086 Partition List My Solution
0087 Scramble String My Solution
0088 Merge Sorted Array My Solution
0091 Decode Ways My Solution
0092 Reverse Linked List II My Solution
0093 Restore IP Addresses My Solution
0094 Binary Tree Inorder Traversal My Solution
0095 Unique Binary Search Trees II My Solution
0097 Interleaving String My Solution
0098 Validate Binary Search Tree My Solution
0100 Same Tree My Solution
0101 Symmetric Tree My Solution
0102 Binary Tree Level Order Traversal My Solution
0103 Binary Tree Zigzag Level Order Traversal My Solution
0104 Maximum Depth of Binary Tree My Solution
0105 Construct Binary Tree from Preorder and Inorder Traversal My Solution
0106 Construct Binary Tree from Inorder and Postorder Traversal My Solution
0108 Convert Sorted Array to Binary Search Tree My Solution
0109 Convert Sorted List to Binary Search Tree My Solution
0110 Balanced Binary Tree My Solution
0111 Minimum Depth of Binary Tree My Solution
0112 Path Sum My Solution
0113 Path Sum II My Solution
0114 Flatten Binary Tree to Linked List My Solution
0116 Populating Next Right Pointers in Each Node My Solution
0117 Populating Next Right Pointers in Each Node II My Solution
0118 Pascal's Triangle My Solution
0119 Pascal's Triangle II My Solution
0120 Triangle My Solution
0121 Best Time to Buy and Sell Stock My Solution
0122 Best Time to Buy and Sell Stock II My Solution
0123 Best Time to Buy and Sell Stock III My Solution
0124 Binary Tree Maximum Path Sum My Solution
0125 Valid Palindrome My Solution
0126 Word Ladder II My Solution
0128 Longest Consecutive Sequence My Solution
0129 Sum Root to Leaf Numbers My Solution
0131 Palindrome Partitioning My Solution
0133 Clone Graph My Solution
0135 Candy My Solution
0137 Single Number II My Solution
0138 Gas Station My Solution
0139 Word Break My Solution
0141 Linked List Cycle My Solution
0142 Linked List Cycle II My Solution
0144 Binary Tree Preorder Traversal My Solution
0146 LRU Cache My Solution
0148 Sort List My Solution
0149 Max Points on a Line My Solution
0150 Evaluate Reverse Polish Notation My Solution
0151 Reverse Words in a String My Solution
0160 Intersection of Two Linked Lists My Solution
0167 Two Sum II - Input Array Is Sorted My Solution
0168 Excel Sheet Column Title My Solution
0188 Best Time to Buy and Sell Stock IV My Solution
0189 Rotate Array My Solution
0198 House Robber My Solution
0199 Binary Tree Right Side View My Solution
0200 Number of Islands My Solution
0202 Happy Number My Solution
0205 Isomorphic Strings My Solution
0206 Reverse Linked List My Solution
0207 Course Schedule My Solution
0208 Implement Trie (Prefix Tree) My Solution
0209 Minimum Size Subarray Sum My Solution
0211 Design Add and Search Words Data Structure My Solution
0212 Word Search II My Solution
0213 House Robber II My Solution
0215 Kth Largest Element in an Array My Solution
0218 The Skyline Problem My Solution
0219 Contains Duplicate II My Solution
0221 Maximal Square My Solution
0222 Count Complete Tree Nodes My Solution
0223 Rectangle Area My Solution
0224 Basic Calculator My Solution
0225 Implement Stack using Queues My Solution
0226 Invert Binary Tree My Solution
0228 Summary Ranges My Solution
0229 Majority Element II My Solution
0232 Implement Queue using Stacks My Solution
0234 Palindrome Linked List My Solution
0235 Lowest Common Ancestor of a Binary Search Tree My Solution
0236 Lowest Common Ancestor of a Binary Tree My Solution
0237 Delete Node in a Linked List My Solution
0239 Sliding Window Maximum My Solution
0240 Search a 2D Matrix II My Solution
0242 Valid Anagram My Solution
0258 Add Digits My Solution
0263 Ugly Number My Solution
0273 Integer to English Words My Solution
0278 First Bad Version My Solution
0279 Perfect Squares My Solution
0283 Move Zeros My Solution
0290 Word Pattern My Solution
0295 Find Median from Data Stream My Solution
0297 Serialize and Deserialize Binary Tree My Solution
0299 Bulls and Cows My Solution
0300 Longest Increasing Subsequence My Solution
0304 Range Sum Query 2D - Immutable My Solution
0307 Range Sum Query - Mutable My Solution
0309 Best Time to Buy and Sell Stock with Cooldown My Solution
0315 Count of Smaller Numbers After Self My Solution
0316 Remove Duplicate Letters My Solution
0319 Bulb Switcher My Solution
0326 Power of Three My Solution
0328 Odd Even Linked List My Solution
0329 Longest Increasing Path in a Matrix My Solution
0334 Increasing Triplet Subsequence My Solution
0336 Palindrome Pairs My Solution
0342 Power of Four My Solution
0344 Reverse String My Solution
0345 Reverse Vowels of a String My Solution
0347 Top K Frequent Elements My Solution
0349 Intersection of Two Arrays My Solution
0352 Data Stream as Disjoint Intervals My Solution
0363 Max Sum of Rectangle No Larger Than My Solution
0373 Find K Pairs with Smallest Sums My Solution
0374 Guess Number Higher or Lower My Solution
0376 Wiggle Subsequence My Solution
0377 Combination Sum IV My Solution
0378 Kth Smallest Element in a Sorted Matrix My Solution
0380 Insert Delete GetRandom O(1) My Solution
0382 Linked List Random Node My Solution
0383 Ransom Note My Solution
0387 First Unique Character in a String My Solution
0389 Find the Difference My Solution
0392 Is Subsequence My Solution
0393 UTF-8 Validation My Solution
0394 Decode String My Solution
0399 Evaluate Division My Solution
0406 Queue Reconstruction by Height My Solution
0409 Longest Palindrome My Solution
0415 Add Strings My Solution
0417 Pacific Atlantic Water Flow My Solution
0424 Longest Repeating Character Replacement My Solution
0427 Construct Quad Tree My Solution
0429 N-ary Tree Level Order Traversal My Solution
0433 Minimum Genetic Mutation My Solution
0435 Non-overlapping Intervals My Solution
0438 Find All Anagrams in a String My Solution
0443 String Compression My Solution
0445 Add Two Numbers II My Solution
0446 Arithmetic Slices II - Subsequence My Solution
0451 Sort Characters By Frequency My Solution
0452 Minimum Number of Arrows to Burst Balloons My Solution
0456 132 Pattern My Solution
0458 Poor Pigs My Solution
0459 Repeated Substring Pattern My Solution
0460 LFU Cache My Solution
0461 Hamming Distance My Solution
0462 Minimum Moves to Equal Array Elements II My Solution
0472 Concatenated Words My Solution
0473 Matchsticks to Square My Solution
0476 Number Complement My Solution
0486 Predict the Winner My Solution
0491 Non-decreasing Subsequences My Solution
0501 Find Mode in Binary Search Tree My Solution
0502 IPO My Solution
0508 Most Frequent Subtree Sum My Solution
0509 Fibonacci Number My Solution
0515 Find Largest Value in Each Tree Row My Solution
0516 Longest Palindromic Subsequence My Solution
0520 Detect Capital My Solution
0521 Longest Uncommon Subsequence I My Solution
0523 Continuous Subarray Sum My Solution
0530 Minimum Absolute Difference in BST My Solution
0538 Convert BST to Greater Tree My Solution
0539 Minimum Time Difference My Solution
0540 Single Element in a Sorted Array My Solution
0542 01 Matrix My Solution
0543 Diameter of Binary Tree My Solution
0547 Number of Provinces My Solution
0557 Reverse Words in a String III My Solution
0559 Maximum Depth of N-ary Tree My Solution
0566 Reshape the Matrix My Solution
0567 Permutation in String My Solution
0572 Subtree of Another Tree My Solution
0576 Out of Boundary Paths My Solution
0583 Delete Operation for Two Strings My Solution
0587 Erect the Fence My Solution
0589 N-ary Tree Preorder Traversal My Solution
0605 Can Place Flowers My Solution
0606 Construct String from Binary Tree My Solution
0609 Find Duplicate File in System My Solution
0617 Merge Two Binary Trees My Solution
0622 Design Circular Queue My Solution
0623 Add One Row to Tree My Solution
0630 Course Schedule III My Solution
0637 Average of Levels in Binary Tree My Solution
0645 Set Mismatch My Solution
0646 Maximum Length of Pair Chain My Solution
0649 Dota2 Senate My Solution
0652 Find Duplicate Subtrees My Solution
0653 Two Sum IV - Input is a BST My Solution
0658 Find K Closest Elements My Solution
0659 Split Array into Consecutive Subsequences My Solution
0662 Maximum Width of Binary Tree My Solution
0664 Strange Printer My Solution
0665 Non-decreasing Array My Solution
0671 Second Minimum Node In a Binary Tree My Solution
0673 Number of Longest Increasing Subsequence My Solution
0688 Knight Probability in Chessboard My Solution
0692 Top K Frequent Words My Solution
0695 Max Area of Island My Solution
0703 Kth Largest Element in a Stream My Solution
0704 Binary Search My Solution
0705 Design HashSet My Solution
0706 Design HashMap My Solution
0709 To Lower Case My Solution
0712 Minimum ASCII Delete Sum for Two Strings My Solution
0714 Best Time to Buy and Sell Stock with Transaction Fee My Solution
0718 Maximum Length of Repeated Subarray My Solution
0724 Find Pivot Index My Solution
0729 My Calendar I My Solution
0731 My Calendar II My Solution
0732 My Calendar III My Solution
0733 Flood Fill My Solution
0735 Asteroid Collision My Solution
0739 Daily Temperatures My Solution
0740 Delete and Earn My Solution
0743 Network Delay Time My Solution
0744 Find Smallest Letter Greater Than Target My Solution
0745 Prefix and Suffix Search My Solution
0746 Min Cost Climbing Stairs My Solution
0766 Toeplitz Matrix My Solution
0767 Reorganize String My Solution
0779 K-th Symbol in Grammar My Solution
0783 Minimum Distance Between BST Nodes My Solution
0785 Is Graph Bipartite? My Solution
0787 Cheapest Flights Within K Stops My Solution
0790 Domino and Tromino Tiling My Solution
0792 Number of Matching Subsequences My Solution
0797 All Paths From Source to Target My Solution
0799 Champagne Tower My Solution
0802 Find Eventual Safe States My Solution
0804 Unique Morse Code Words My Solution
0808 Soup Servings My Solution
0814 Binary Tree Pruning My Solution
0815 Bus Routes My Solution
0820 Short Encoding of Words My Solution
0823 Binary Trees With Factors My Solution
0834 Sum of Distances in Tree My Solution
0835 Image Overlap My Solution
0837 New 21 Game My Solution
0838 Push Dominoes My Solution
0839 Similar String Groups My Solution
0841 Keys and Rooms My Solution
0844 Backspace String Compare My Solution
0848 Shifting Letters My Solution
0852 Peak Index in a Mountain Array My Solution
0858 Mirror Reflection My Solution
0859 Buddy Strings My Solution
0863 All Nodes Distance K in Binary Tree My Solution
0864 Shortest Path to Get All Keys My Solution
0867 Transpose Matrix My Solution
0869 Reordered Power of 2 My Solution
0871 Minimum Number of Refueling Stops My Solution
0872 Leaf-Similar Trees My Solution
0875 Koko Eating Bananas My Solution
0876 Middle of the Linked List My Solution
0879 Profitable Schemes My Solution
0880 Decoded String at Index My Solution
0881 Boats to Save People My Solution
0885 Spiral Matrix III My Solution
0886 Possible Bipartition My Solution
0888 Fair Candy Swap My Solution
0890 Find and Replace Pattern My Solution
0894 All Possible Full Binary Trees My Solution
0899 Orderly Queue My Solution
0901 Online Stock Span My Solution
0904 Fruit Into Baskets My Solution
0907 Sum of Subarray Minimums My Solution
0909 Snakes and Ladders My Solution
0912 Sort an Array My Solution
0916 Word Subsets My Solution
0917 Reverse Only Letters My Solution
0918 Maximum Sum Circular Subarray My Solution
0920 Number of Music Playlists My Solution
0926 Flip String to Monotone Increasing My Solution
0931 Minimum Falling Path Sum My Solution
0933 Number of Recent Calls My Solution
0934 Shortest Bridge My Solution
0936 Stamping The Sequence My Solution
0938 Range Sum of BST My Solution
0944 Delete Columns to Make Sorted My Solution
0946 Validate Stack Sequences My Solution
0947 Most Stones Removed with Same Row or Column My Solution
0948 Bag of Tokens My Solution
0951 Flip Equivalent Binary Trees My Solution
0953 Verifying an Alien Dictionary My Solution
0956 Tallest Billboard My Solution
0958 Check Completeness of a Binary Tree My Solution
0967 Numbers With Same Consecutive Differences My Solution
0968 Binary Tree Cameras My Solution
0974 Subarray Sums Divisible by K My Solution
0976 Largest Perimeter Triangle My Solution
0977 Squares of a Sorted Array My Solution
0980 Unique Paths III My Solution
0981 Time Based Key-Value Store My Solution
0983 Minimum Cost For Tickets My Solution
0985 Sum of Even Numbers After Queries My Solution
0987 Vertical Order Traversal of a Binary Tree My Solution
0989 Add to Array-Form of Integer My Solution
0990 Satisfiability of Equality Equations My Solution
0994 Rotting Oranges My Solution
0997 Find the Town Judge My Solution
0999 Available Captures for Rook My Solution
1009 Complement of Base 10 Integer My Solution
1011 Capacity To Ship Packages Within D Days My Solution
1013 Partition Array Into Three Parts With Equal Sum My Solution
1020 Number of Enclaves My Solution
1026 Maximum Difference Between Node and Ancestor My Solution
1027 Longest Arithmetic Subsequence My Solution
1035 Uncrossed Lines My Solution
1038 Binary Search Tree to Greater Sum Tree My Solution
1046 Last Stone Weight My Solution
1047 Remove All Adjacent Duplicates In String My Solution
1048 Longest String Chain My Solution
1061 Lexicographically Smallest Equivalent String My Solution
1071 Greatest Common Divisor of Strings My Solution
1074 Number of Submatrices That Sum to Target My Solution
1091 Shortest Path in Binary Matrix My Solution
1095 Find in Mountain Array My Solution
1103 Distribute Candies to People My Solution
1123 Lowest Common Ancestor of Deepest Leaves My Solution
1129 Shortest Path with Alternating Colors My Solution
1137 N-th Tribonacci Number My Solution
1140 Stone Game II My Solution
1143 Longest Common Subsequence My Solution
1146 Snapshot Array My Solution
1155 Number of Dice Rolls With Target Sum My Solution
1161 Maximum Level Sum of a Binary Tree My Solution
1162 As Far from Land as Possible My Solution
1187 Make Array Strictly Increasing My Solution
1192 Critical Connections in a Network My Solution
1207 Unique Number of Occurrences My Solution
1218 Longest Arithmetic Subsequence of Given Difference My Solution
1220 Count Vowels Permutation My Solution
1125 Smallest Sufficient Team My Solution
1232 Check If It Is a Straight Line My Solution
1235 Maximum Profit in Job Scheduling My Solution
1239 Maximum Length of a Concatenated String with Unique Characters My Solution
1268 Search Suggestions System My Solution
1254 Number of Closed Islands My Solution
1293 Shortest Path in a Grid with Obstacles Elimination My Solution
1302 Deepest Leaves Sum My Solution
1305 All Elements in Two Binary Search Trees My Solution
1312 Minimum Insertion Steps to Make a String Palindrome My Solution
1318 Minimum Flips to Make a OR b Equal to c My Solution
1319 Number of Operations to Make Network Connected My Solution
1323 Maximum 69 Number My Solution
1324 Print Words Vertically My Solution
1328 Break a Palindrome My Solution
1329 Sort the Matrix Diagonally My Solution
1332 Remove Palindromic Subsequences My Solution
1333 Filter Restaurants by Vegan-Friendly, Price and Distance My Solution
1335 Minimum Difficulty of a Job Schedule My Solution
1338 Reduce Array Size to The Half My Solution
1339 Maximum Product of Split Binary Tree My Solution
1345 Jump Game IV My Solution
1351 Count Negative Numbers in a Sorted Matrix My Solution
1354 Construct Target Array With Multiple Sums My Solution
1357 Apply Discount Every n Orders My Solution
1361 Validate Binary Tree Nodes My Solution
1372 Longest ZigZag Path in a Binary Tree My Solution
1376 Time Needed to Inform All Employees My Solution
1379 Find a Binary Tree Node in a Clone of That Tree* My Solution
1383 Maximum Performance of a Team My Solution
1391 Check if There is a Valid Path in a Grid My Solution
1396 Design Underground System My Solution
1402 Reducing Dishes My Solution
1406 Stone Game III My Solution
1408 String Matching in an Array My Solution
1413 Minimum Value to Get Positive Step by Step Sum My Solution
1416 Restore The Array My Solution
1417 Reformat The String My Solution
1423 Maximum Points You Can Obtain from Cards My Solution
1431 Kids With the Greatest Number of Candies My Solution
1443 Minimum Time to Collect All Apples in a Tree My Solution
1444 Number of Ways of Cutting a Pizza My Solution
1448 Count Good Nodes in Binary Tree My Solution
1456 Maximum Number of Vowels in a Substring of Given Length My Solution
1457 Pseudo-Palindromic Paths in a Binary Tree My Solution
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts My Solution
1466 Reorder Routes to Make All Paths Lead to the City Zero My Solution
1470 Shuffle the Array My Solution
1472 Design Browser History My Solution
1480 Running Sum of 1d Array My Solution
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree My Solution
1491 Average Salary Excluding the Minimum and Maximum Salary My Solution
1493 Longest Subarray of 1's After Deleting One Element My Solution
1496 Path Crossing My Solution
1498 Number of Subsequences That Satisfy the Given Sum Condition My Solution
1502 Can Make Arithmetic Progression From Sequence My Solution
1512 Number of Good Pairs My Solution
1514 Path with Maximum Probability My Solution
1519 Number of Nodes in the Sub-Tree With the Same Label My Solution
1523 Count Odd Numbers in an Interval Range My Solution
1539 Kth Missing Positive Number My Solution
1544 Make The String Great My Solution
1547 Minimum Cost to Cut a Stick My Solution
1557 Minimum Number of Vertices to Reach All Nodes My Solution
1569 Number of Ways to Reorder Array to Get Same BST My Solution
1572 Matrix Diagonal Sum My Solution
1575 Count All Possible Routes My Solution
1578 Minimum Time to Make Rope Colorful My Solution
1579 Remove Max Number of Edges to Keep Graph Fully Traversable My Solution
1582 Special Positions in a Binary Matrix My Solution
1601 Maximum Number of Achievable Transfer Requests My Solution
1603 Design Parking System My Solution
1615 Maximal Network Rank My Solution
1626 Best Team With No Conflicts My Solution
1629 Slowest Key My Solution
1631 Path With Minimum Effort My Solution
1639 Number of Ways to Form a Target String Given a Dictionary My Solution
1642 Furthest Building You Can Reach My Solution
1647 Minimum Deletions to Make Character Frequencies Unique My Solution
1657 Determine if Two Strings Are Close My Solution
1658 Minimum Operations to Reduce X to Zero My Solution
1662 Check If Two String Arrays are Equivalent My Solution
1675 Minimize Deviation in Array My Solution
1697 Checking Existence of Edge Length Limited Paths My Solution
1680 Concatenation of Consecutive Binary Numbers My Solution
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers My Solution
1695 Maximum Erasure Value My Solution
1696 Jump Game VI My Solution
1704 Determine if String Halves Are Alike My Solution
1706 Where Will the Ball Fall My Solution
1710 Maximum Units on a Truck My Solution
1721 Swapping Nodes in a Linked List My Solution
1732 Find the Highest Altitude My Solution
1743 Restore the Array From Adjacent Pairs My Solution
1751 Maximum Number of Events That Can Be Attended II My Solution
1759 Count Number of Homogenous Substrings My Solution
1768 Merge Strings Alternately My Solution
1770 Maximum Score from Performing Multiplication Operations My Solution
1799 Maximize Score After N Operations My Solution
1802 Maximum Value at a Given Index in a Bounded Array My Solution
1817 Finding the Users Active Minutes My Solution
1822 Sign of the Product of an Array My Solution
1832 Check if the Sentence Is Pangram My Solution
1833 Maximum Ice Cream Bars My Solution
1834 Single-Threaded CPU My Solution
1837 Sum of Digits in Base K My Solution
1844 Replace All Digits with Characters My Solution
1845 Seat Reservation Manager My Solution
1846 Maximum Element After Decreasing and Rearranging My Solution
1857 Largest Color Value in a Directed Graph My Solution
1870 Minimum Speed to Arrive on Time My Solution
1876 Substrings of Size Three with Distinct Characters My Solution
1921 Eliminate Maximum Number of Monsters My Solution
1926 Nearest Exit from Entrance in Maze My Solution
1962 Remove Stones to Minimize the Total My Solution
1964 Find the Longest Valid Obstacle Course at Each Position My Solution
1970 Last Day Where You Can Still Cross My Solution
1971 Find if Path Exists in Graph My Solution
1980 Find Unique Binary String My Solution
1996 The Number of Weak Characters in the Game My Solution
2000 Reverse Prefix of Word My Solution
2007 Find Original Array From Doubled Array My Solution
2017 Grid Game My Solution
2024 Maximize the Confusion of an Exam My Solution
2038 Remove Colored Pieces if Both Neighbors are the Same Color My Solution
2050 Parallel Courses III My Solution
2070 Most Beautiful Item for Each Query My Solution
2090 K Radius Subarray Averages My Solution
2095 Delete the Middle Node of a Linked List My Solution
2101 Detonate the Maximum Bombs My Solution
2129 Capitalize the Title My Solution
2130 Maximum Twin Sum of a Linked List My Solution
2131 Longest Palindrome by Concatenating Two Letter Words My Solution
2136 Earliest Possible Day of Full Bloom My Solution
2140 Solving Questions With Brainpower My Solution
2141 Maximum Running Time of N Computers My Solution
2148 Count Elements With Strictly Smaller and Greater Elements My Solution
2165 Smallest Value of the Rearranged Number My Solution
2187 Minimum Time to Complete Trips My Solution
2215 Find the Difference of Two Arrays My Solution
2218 Maximum Value of K Coins From Piles My Solution
2225 Find Players With Zero or One Losses My Solution
2244 Minimum Rounds to Complete All Tasks My Solution
2246 Longest Path With Different Adjacent Characters My Solution
2256 Minimum Average Difference My Solution
2259 Remove Digit From Number to Maximize Result My Solution
2265 Count Nodes Equal to Average of Subtree My Solution
2272 Substring With Largest Variance My Solution
2278 Percentage of Letter in String My Solution
2279 Maximum Bags With Full Capacity of Rocks My Solution
2284 Sender With Largest Word Count My Solution
2300 Successful Pairs of Spells and Potions My Solution
2305 Fair Distribution of Cookies My Solution
2306 Naming a Company My Solution
2316 Count Unreachable Pairs of Nodes in an Undirected Graph My Solution
2326 Spiral Matrix IV My Solution
2328 Number of Increasing Paths in a Grid My Solution
2331 Evaluate Boolean Binary Tree My Solution
2336 Smallest Number in Infinite Set My Solution
2348 Number of Zero-Filled Subarrays My Solution
2352 Equal Row and Column Pairs My Solution
2353 Design a Food Rating System My Solution
2359 Find Closest Node to Given Two Nodes My Solution
2360 Longest Cycle in a Graph My Solution
2366 Minimum Replacements to Sort the Array My Solution
2369 Check if There is a Valid Partition For The Array My Solution
2389 Longest Subsequence With Limited Sum My Solution
2390 Removing Stars From a String My Solution
2405 Optimal Partition of String My Solution
2413 Smallest Even Multiple My Solution
2421 Number of Good Paths My Solution
2433 Find The Original Array of Prefix Xor My Solution
2439 Minimize Maximum of Array My Solution
2444 Count Subarrays With Fixed Bounds My Solution
2448 Minimum Cost to Make Array Equal My Solution
2462 Total Cost to Hire K Workers My Solution
2466 Count Ways To Build Good Strings My Solution
2477 Minimum Fuel Cost to Report to the Capital My Solution
2483 Minimum Penalty for a Shop My Solution
2492 Minimum Score of a Path Between Two Cities My Solution
2512 Reward Top K Students My Solution
2542 Maximum Subsequence Score My Solution
2551 Put Marbles in Bags My Solution
2553 Separate the Digits in an Array My Solution
2558 Take Gifts From the Richest Pile My Solution
2562 Find the Array Concatenation Value My Solution
2605 Form Smallest Number From Two Digit Arrays My Solution
2616 Minimize the Maximum Difference of Pairs My Solution
2642 Design Graph With Shortest Path Calculator My Solution
2707 Extra Characters in a String My Solution
2785 Sort Vowels in a String My Solution

Notes

Number Note
1379 This problem was done with python since Go wasn't available
0834 Needs revision
0446 Needs revision
2421 Needs revision
0072 Needs revision
0087 Needs revision
1857 Needs revision
1187 Needs revision
0879 Needs revision
2542 Needs revision
1799 Black magic
1569 No Idea

In Progress

Number Name Link

About

My Leetcode Solutions With Tests


Languages

Language:Go 99.9%Language:Python 0.1%