meidong163 / LeetCode-CodeBase

This repo presents all the solution I passed on LeeCode, should be used AS a Reference for study purpose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeetCode-CodeBase

This repo presents all the solution I passed on LeetCode, should be used AS a Reference for study purpose.

Usage:

  1. Edit code in code.swift file
  2. > ./generate.sh problem_identifier

Update README file only: > swift readme_gen.swift > README.md

X # Question Swift-607 Java-150
2402 Meeting Rooms III Swift Java
2401 Longest Nice Subarray Swift Java
2400 Number of Ways to Reach a Position After Exactly k Steps Swift Java
2399 Check Distances Between Same Letters Swift Java
2398 Maximum Number of Robots Within Budget Swift Java
2397 Maximum Rows Covered by Columns Swift Java
2396 Strictly Palindromic Number Swift Java
2395 Find Subarrays With Equal Sum Swift Java
2393 Count Strictly Increasing Subarrays Swift Java
2392 Build a Matrix With Conditions Swift Java
2391 Minimum Amount of Time to Collect Garbage Swift Java
2390 Removing Stars From a String Swift Java
2389 Longest Subsequence With Limited Sum Swift Java
2387 Median of a Row Wise Sorted Matrix Swift Java
2386 Find the K-Sum of an Array Swift Java
2385 Amount of Time for Binary Tree to Be Infected Swift Java
2384 Largest Palindromic Number Swift Java
2383 Minimum Hours of Training to Win a Competition Swift Java
2382 Maximum Segment Sum After Removals Swift Java
2381 Shifting Letters II Swift Java
2380 Time Needed to Rearrange a Binary String Swift Java
2379 Minimum Recolors to Get K Consecutive Black Blocks Swift Java
2378 Choose Edges to Maximize Score in a Tree Swift Java
2376 Count Special Integers Swift Java
2375 Construct Smallest Number From DI String Swift Java
2374 Node With Highest Edge Score Swift Java
2373 Largest Local Values in a Matrix Swift Java
2371 Minimize Maximum Value in a Grid Swift Java
2370 Longest Ideal Subsequence Swift Java
2369 Check if There is a Valid Partition For The Array Swift Java
2368 Reachable Nodes With Restrictions Swift Java
2367 Number of Arithmetic Triplets Swift Java
2366 Minimum Replacements to Sort the Array Swift Java
2365 Task Scheduler II Swift Java
2364 Count Number of Bad Pairs Swift Java
2363 Merge Similar Items Swift Java
2361 Minimum Costs Using the Train Line Swift Java
2360 Longest Cycle in a Graph Swift Java
2359 Find Closest Node to Given Two Nodes Swift Java
2358 Maximum Number of Groups Entering a Competition Swift Java
2357 Make Array Zero by Subtracting Equal Amounts Swift Java
2355 Maximum Number of Books You Can Take Swift Java
2354 Number of Excellent Pairs Swift Java
2353 Design a Food Rating System Swift Java
2352 Equal Row and Column Pairs Swift Java
2351 First Letter to Appear Twice Swift Java
2350 Shortest Impossible Sequence of Rolls Swift Java
2349 Design a Number Container System Swift Java
2348 Number of Zero-Filled Subarrays Swift Java
2347 Best Poker Hand Swift Java
2345 Finding the Number of Visible Mountains Swift Java
2344 Minimum Deletions to Make Array Divisible Swift Java
2343 Query Kth Smallest Trimmed Number Swift Java
2342 Max Sum of a Pair With Equal Sum of Digits Swift Java
2341 Maximum Number of Pairs in Array Swift Java
2340 Minimum Adjacent Swaps to Make a Valid Array Swift Java
2338 Count the Number of Ideal Arrays Swift Java
2337 Move Pieces to Obtain a String Swift Java
2336 Smallest Number in Infinite Set Swift Java
2335 Minimum Amount of Time to Fill Cups Swift Java
2334 Subarray With Elements Greater Than Varying Threshold Swift Java
2333 Minimum Sum of Squared Difference Swift Java
2332 The Latest Time to Catch a Bus Swift Java
2331 Evaluate Boolean Binary Tree Swift Java
2330 Valid Palindrome IV Swift Java
2328 Number of Increasing Paths in a Grid Swift Java
2327 Number of People Aware of a Secret Swift Java
2326 Spiral Matrix IV Swift Java
2325 Decode the Message Swift Java
2323 Find Minimum Time to Finish All Jobs II Swift Java
2322 Minimum Score After Removals on a Tree Swift Java
2321 Maximum Score Of Spliced Array Swift Java
2320 Count Number of Ways to Place Houses Swift Java
2319 Check if Matrix Is X-Matrix Swift Java
2318 Number of Distinct Roll Sequences Swift Java
2317 Maximum XOR After Operations Swift Java
2316 Count Unreachable Pairs of Nodes in an Undirected Graph Swift Java
2315 Count Asterisks Swift Java
2313 Minimum Flips in Binary Tree to Get Result Swift Java
2312 Selling Pieces of Wood Swift Java
2311 Longest Binary Subsequence Less Than or Equal to K Swift Java
2310 Sum of Numbers With Units Digit K Swift Java
2309 Greatest English Letter in Upper and Lower Case Swift Java
2307 Check for Contradictions in Equations Swift Java
2306 Naming a Company Swift Java
2305 Fair Distribution of Cookies Swift Java
2304 Minimum Path Cost in a Grid Swift Java
2303 Calculate Amount Paid in Taxes Swift Java
2302 Count Subarrays With Score Less Than K Swift Java
2301 Match Substring After Replacement Swift Java
2300 Successful Pairs of Spells and Potions Swift Java
2299 Strong Password Checker II Swift Java
2297 Jump Game VIII Swift Java
2296 Design a Text Editor Swift Java
2295 Replace Elements in an Array Swift Java
2294 Partition Array Such That Maximum Difference Is K Swift Java
2293 Min Max Game Swift Java
2291 Maximum Profit From Trading Stocks Swift Java
2290 Minimum Obstacle Removal to Reach Corner Swift Java
2289 Steps to Make Array Non-decreasing Swift Java
2288 Apply Discount to Prices Swift Java
2287 Rearrange Characters to Make Target String Swift Java
2286 Booking Concert Tickets in Groups Swift Java
2285 Maximum Total Importance of Roads Swift Java
2284 Sender With Largest Word Count Swift Java
2283 Check if Number Has Equal Digit Count and Digit Value Swift Java
2282 Number of People That Can Be Seen in a Grid Swift Java
2281 Sum of Total Strength of Wizards Swift Java
2280 Minimum Lines to Represent a Line Chart Swift Java
2279 Maximum Bags With Full Capacity of Rocks Swift Java
2278 Percentage of Letter in String Swift Java
2277 Closest Node to Path in Tree Swift Java
2276 Count Integers in Intervals Swift Java
2275 Largest Combination With Bitwise AND Greater Than Zero Swift Java
2274 Maximum Consecutive Floors Without Special Floors Swift Java
2273 Find Resultant Array After Removing Anagrams Swift Java
2272 Substring With Largest Variance Swift Java
2271 Maximum White Tiles Covered by a Carpet Swift Java
2270 Number of Ways to Split Array Swift Java
2269 Find the K-Beauty of a Number Swift Java
2268 Minimum Number of Keypresses Swift Java
2267 Check if There Is a Valid Parentheses String Path Swift Java
2266 Count Number of Texts Swift Java
2265 Count Nodes Equal to Average of Subtree Swift Java
2264 Largest 3-Same-Digit Number in String Swift Java
2263 Make Array Non-decreasing or Non-increasing Swift Java
2262 Total Appeal of A String Swift Java
2261 K Divisible Elements Subarrays Swift Java
X 2260 Minimum Consecutive Cards to Pick Up Swift Java
X 2259 Remove Digit From Number to Maximize Result Swift Java
2258 Escape the Spreading Fire Swift Java
2257 Count Unguarded Cells in the Grid Swift Java
2256 Minimum Average Difference Swift Java
2255 Count Prefixes of a Given String Swift Java
2254 Design Video Sharing Platform Swift Java
2251 Number of Flowers in Full Bloom Swift Java
2250 Count Number of Rectangles Containing Each Point Swift Java
2249 Count Lattice Points Inside a Circle Swift Java
2248 Intersection of Multiple Arrays Swift Java
2247 Maximum Cost of Trip With K Highways Swift Java
2246 Longest Path With Different Adjacent Characters Swift Java
2245 Maximum Trailing Zeros in a Cornered Path Swift Java
2244 Minimum Rounds to Complete All Tasks Swift Java
2243 Calculate Digit Sum of a String Swift Java
2242 Maximum Score of a Node Sequence Swift Java
2241 Design an ATM Machine Swift Java
2240 Number of Ways to Buy Pens and Pencils Swift Java
2239 Find Closest Number to Zero Swift Java
2237 Count Positions on Street With Required Brightness Swift Java
2236 Root Equals Sum of Children Swift Java
X 2235 Add Two Integers Swift Java
2234 Maximum Total Beauty of the Gardens Swift Java
2233 Maximum Product After K Increments Swift Java
2232 Minimize Result by Adding Parentheses to Expression Swift Java
2231 Largest Number After Digit Swaps by Parity Swift Java
2229 Check if an Array Is Consecutive Swift Java
2227 Encrypt and Decrypt Strings Swift Java
2226 Maximum Candies Allocated to K Children Swift Java
2225 Find Players With Zero or One Losses Swift Java
2224 Minimum Number of Operations to Convert Time Swift Java
2223 Sum of Scores of Built Strings Swift Java
2222 Number of Ways to Select Buildings Swift Java
2221 Find Triangular Sum of an Array Swift Java
2220 Minimum Bit Flips to Convert Number Swift Java
2219 Maximum Sum Score of Array Swift Java
2218 Maximum Value of K Coins From Piles Swift Java
2217 Find Palindrome With Fixed Length Swift Java
2216 Minimum Deletions to Make Array Beautiful Swift Java
2215 Find the Difference of Two Arrays Swift Java
2214 Minimum Health to Beat Game Swift Java
2213 Longest Substring of One Repeating Character Swift Java
2212 Maximum Points in an Archery Competition Swift Java
2211 Count Collisions on a Road Swift Java
2210 Count Hills and Valleys in an Array Swift Java
2209 Minimum White Tiles After Covering With Carpets Swift Java
2208 Minimum Operations to Halve Array Sum Swift Java
2207 Maximize Number of Subsequences in a String Swift Java
2206 Divide Array Into Equal Pairs Swift Java
2204 Distance to a Cycle in Undirected Graph Swift Java
2203 Minimum Weighted Subgraph With the Required Paths Swift Java
2202 Maximize the Topmost Element After K Moves Swift Java
2201 Count Artifacts That Can Be Extracted Swift Java
2200 Find All K-Distant Indices in an Array Swift Java
2198 Number of Single Divisor Triplets Swift Java
2197 Replace Non-Coprime Numbers in Array Swift Java
2196 Create Binary Tree From Descriptions Swift Java
2195 Append K Integers With Minimal Sum Swift Java
2194 Cells in a Range on an Excel Sheet Swift Java
2193 Minimum Number of Moves to Make Palindrome Swift Java
2192 All Ancestors of a Node in a Directed Acyclic Graph Swift Java
2191 Sort the Jumbled Numbers Swift Java
2190 Most Frequent Number Following Key In an Array Swift Java
2189 Number of Ways to Build House of Cards Swift Java
2188 Minimum Time to Finish the Race Swift Java
2187 Minimum Time to Complete Trips Swift Java
2186 Minimum Number of Steps to Make Two Strings Anagram II Swift Java
2185 Counting Words With a Given Prefix Swift Java
2184 Number of Ways to Build Sturdy Brick Wall Swift Java
2183 Count Array Pairs Divisible by K Swift Java
2182 Construct String With Repeat Limit Swift Java
2181 Merge Nodes in Between Zeros Swift Java
2180 Count Integers With Even Digit Sum Swift Java
2179 Count Good Triplets in an Array Swift Java
X 2178 Maximum Split of Positive Even Integers Swift Java
2177 Find Three Consecutive Integers That Sum to a Given Number Swift Java
2176 Count Equal and Divisible Pairs in an Array Swift Java
2174 Remove All Ones With Row and Column Flips II Swift Java
2172 Maximum AND Sum of Array Swift Java
2171 Removing Minimum Number of Magic Beans Swift Java
2170 Minimum Operations to Make the Array Alternating Swift Java
2169 Count Operations to Obtain Zero Swift Java
2168 Unique Substrings With Equal Digit Frequency Swift Java
2167 Minimum Time to Remove All Cars Containing Illegal Goods Swift Java
2166 Design Bitset Swift Java
2165 Smallest Value of the Rearranged Number Swift Java
2164 Sort Even and Odd Indices Independently Swift Java
2163 Minimum Difference in Sums After Removal of Elements Swift Java
2162 Minimum Cost to Set Cooking Time Swift Java
2161 Partition Array According to Given Pivot Swift Java
2160 Minimum Sum of Four Digit Number After Splitting Digits Swift Java
2158 Amount of New Area Painted Each Day Swift Java
2157 Groups of Strings Swift Java
2156 Find Substring With Given Hash Value Swift Java
2155 All Divisions With the Highest Score of a Binary Array Swift Java
2154 Keep Multiplying Found Values by Two Swift Java
2152 Minimum Number of Lines to Cover Points Swift Java
2151 Maximum Good People Based on Statements Swift Java
2150 Find All Lonely Numbers in the Array Swift Java
2149 Rearrange Array Elements by Sign Swift Java
X 2148 Count Elements With Strictly Smaller and Greater Elements Swift Java
2147 Number of Ways to Divide a Long Corridor Swift Java
2146 K Highest Ranked Items Within a Price Range Swift Java
2145 Count the Hidden Sequences Swift Java
2144 Minimum Cost of Buying Candies With Discount Swift Java
2143 Choose Numbers From Two Arrays in Range Swift Java
2141 Maximum Running Time of N Computers Swift Java
2140 Solving Questions With Brainpower Swift Java
2139 Minimum Moves to Reach Target Score Swift Java
X 2138 Divide a String Into Groups of Size k Swift Java
2137 Pour Water Between Buckets to Make Water Levels Equal Swift Java
2136 Earliest Possible Day of Full Bloom Swift Java
2135 Count Words Obtained After Adding a Letter Swift Java
2134 Minimum Swaps to Group All 1's Together II Swift Java
X 2133 Check if Every Row and Column Contains All Numbers Swift Java
2132 Stamping the Grid Swift Java
2131 Longest Palindrome by Concatenating Two Letter Words Swift Java
2130 Maximum Twin Sum of a Linked List Swift Java
2129 Capitalize the Title Swift Java
2128 Remove All Ones With Row and Column Flips Swift Java
2127 Maximum Employees to Be Invited to a Meeting Swift Java
2126 Destroying Asteroids Swift Java
2125 Number of Laser Beams in a Bank Swift Java
2124 Check if All A's Appears Before All B's Swift Java
2123 Minimum Operations to Remove Adjacent Ones in Matrix Swift Java
2122 Recover the Original Array Swift Java
2121 Intervals Between Identical Elements Swift Java
2120 Execution of All Suffix Instructions Staying in a Grid Swift Java
X 2119 A Number After a Double Reversal Swift Java
2117 Abbreviating the Product of a Range Swift Java
2116 Check if a Parentheses String Can Be Valid Swift Java
2115 Find All Possible Recipes from Given Supplies Swift Java
2114 Maximum Number of Words Found in Sentences Swift Java
2113 Elements in Array After Removing and Replacing Elements Swift Java
2111 Minimum Operations to Make the Array K-Increasing Swift Java
2110 Number of Smooth Descent Periods of a Stock Swift Java
2109 Adding Spaces to a String Swift Java
2108 Find First Palindromic String in the Array Swift Java
2107 Number of Unique Flavors After Sharing K Candies Swift Java
2106 Maximum Fruits Harvested After at Most K Steps Swift Java
2105 Watering Plants II Swift Java
2104 Sum of Subarray Ranges Swift Java
2103 Rings and Rods Swift Java
2102 Sequentially Ordinal Rank Tracker Swift Java
2101 Detonate the Maximum Bombs Swift Java
2100 Find Good Days to Rob the Bank Swift Java
2099 Find Subsequence of Length K With the Largest Sum Swift Java
2098 Subsequence of Size K With the Largest Even Sum Swift Java
2097 Valid Arrangement of Pairs Swift Java
X 2096 Step-By-Step Directions From a Binary Tree Node to Another Swift Java
2095 Delete the Middle Node of a Linked List Swift Java
2094 Finding 3-Digit Even Numbers Swift Java
2093 Minimum Cost to Reach City With Discounts Swift Java
2092 Find All People With Secret Swift Java
2091 Removing Minimum and Maximum From Array Swift Java
2090 K Radius Subarray Averages Swift Java
2089 Find Target Indices After Sorting Array Swift Java
2088 Count Fertile Pyramids in a Land Swift Java
2087 Minimum Cost Homecoming of a Robot in a Grid Swift Java
2086 Minimum Number of Buckets Required to Collect Rainwater from Houses Swift Java
2085 Count Common Words With One Occurrence Swift Java
2083 Substrings That Begin and End With the Same Letter Swift Java
2081 Sum of k-Mirror Numbers Swift Java
2080 Range Frequency Queries Swift Java
2079 Watering Plants Swift Java
2078 Two Furthest Houses With Different Colors Swift Java
2077 Paths in Maze That Lead to Same Room Swift Java
2076 Process Restricted Friend Requests Swift Java
2075 Decode the Slanted Ciphertext Swift Java
2074 Reverse Nodes in Even Length Groups Swift Java
2073 Time Needed to Buy Tickets Swift Java
2071 Maximum Number of Tasks You Can Assign Swift Java
2070 Most Beautiful Item for Each Query Swift Java
2069 Walking Robot Simulation II Swift Java
2068 Check Whether Two Strings are Almost Equivalent Swift Java
2067 Number of Equal Count Substrings Swift Java
2065 Maximum Path Quality of a Graph Swift Java
2064 Minimized Maximum of Products Distributed to Any Store Swift Java
2063 Vowels of All Substrings Swift Java
2062 Count Vowel Substrings of a String Swift Java
2061 Number of Spaces Cleaning Robot Cleaned Swift Java
2060 Check if an Original String Exists Given Two Encoded Strings Swift Java
2059 Minimum Operations to Convert Number Swift Java
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Swift Java
2057 Smallest Index With Equal Value Swift Java
2056 Number of Valid Move Combinations On Chessboard Swift Java
2055 Plates Between Candles Swift Java
2054 Two Best Non-Overlapping Events Swift Java
2053 Kth Distinct String in an Array Swift Java
2052 Minimum Cost to Separate Sentence Into Rows Swift Java
2050 Parallel Courses III Swift Java
2049 Count Nodes With the Highest Score Swift Java
2048 Next Greater Numerically Balanced Number Swift Java
2047 Number of Valid Words in a Sentence Swift Java
2046 Sort Linked List Already Sorted Using Absolute Values Swift Java
2045 Second Minimum Time to Reach Destination Swift Java
2044 Count Number of Maximum Bitwise-OR Subsets Swift Java
2043 Simple Bank System Swift Java
2042 Check if Numbers Are Ascending in a Sentence Swift Java
2040 Kth Smallest Product of Two Sorted Arrays Swift Java
2039 The Time When the Network Becomes Idle Swift Java
2038 Remove Colored Pieces if Both Neighbors are the Same Color Swift Java
2037 Minimum Number of Moves to Seat Everyone Swift Java
2036 Maximum Alternating Subarray Sum Swift Java
2035 Partition Array Into Two Arrays to Minimize Sum Difference Swift Java
2034 Stock Price Fluctuation Swift Java
2033 Minimum Operations to Make a Uni-Value Grid Swift Java
2032 Two Out of Three Swift Java
2031 Count Subarrays With More Ones Than Zeros Swift Java
2030 Smallest K-Length Subsequence With Occurrences of a Letter Swift Java
2029 Stone Game IX Swift Java
2028 Find Missing Observations Swift Java
2027 Minimum Moves to Convert String Swift Java
2025 Maximum Number of Ways to Partition an Array Swift Java
2024 Maximize the Confusion of an Exam Swift Java
2023 Number of Pairs of Strings With Concatenation Equal to Target Swift Java
2022 Convert 1D Array Into 2D Array Swift Java
2021 Brightest Position on Street Swift Java
2019 The Score of Students Solving Math Expression Swift Java
2018 Check if Word Can Be Placed In Crossword Swift Java
2017 Grid Game Swift Java
2016 Maximum Difference Between Increasing Elements Swift Java
2015 Average Height of Buildings in Each Segment Swift Java
2014 Longest Subsequence Repeated k Times Swift Java
2013 Detect Squares Swift Java
2012 Sum of Beauty in the Array Swift Java
2011 Final Value of Variable After Performing Operations Swift Java
2009 Minimum Number of Operations to Make Array Continuous Swift Java
2008 Maximum Earnings From Taxi Swift Java
2007 Find Original Array From Doubled Array Swift Java
2006 Count Number of Pairs With Absolute Difference K Swift Java
2005 Subtree Removal Game with Fibonacci Tree Swift Java
2003 Smallest Missing Genetic Value in Each Subtree Swift Java
2002 Maximum Product of the Length of Two Palindromic Subsequences Swift Java
2001 Number of Pairs of Interchangeable Rectangles Swift Java
2000 Reverse Prefix of Word Swift Java
1999 Smallest Greater Multiple Made of Two Digits Swift Java
1998 GCD Sort of an Array Swift Java
1997 First Day Where You Have Been in All the Rooms Swift Java
X 1996 The Number of Weak Characters in the Game Swift Java
1995 Count Special Quadruplets Swift Java
1994 The Number of Good Subsets Swift Java
1993 Operations on Tree Swift Java
1992 Find All Groups of Farmland Swift Java
1991 Find the Middle Index in Array Swift Java
1989 Maximum Number of People That Can Be Caught in Tag Swift Java
1987 Number of Unique Good Subsequences Swift Java
1986 Minimum Number of Work Sessions to Finish the Tasks Swift Java
1985 Find the Kth Largest Integer in the Array Swift Java
1984 Minimum Difference Between Highest and Lowest of K Scores Swift Java
1983 Widest Pair of Indices With Equal Range Sum Swift Java
1982 Find Array Given Subset Sums Swift Java
1981 Minimize the Difference Between Target and Chosen Elements Swift Java
1980 Find Unique Binary String Swift Java
1979 Find Greatest Common Divisor of Array Swift Java
1977 Number of Ways to Separate Numbers Swift Java
1976 Number of Ways to Arrive at Destination Swift Java
1975 Maximum Matrix Sum Swift Java
1974 Minimum Time to Type Word Using Special Typewriter Swift Java
1973 Count Nodes Equal to Sum of Descendants Swift Java
1971 Find if Path Exists in Graph Swift Java
1970 Last Day Where You Can Still Cross Swift Java
1969 Minimum Non-Zero Product of the Array Elements Swift Java
1968 Array With Elements Not Equal to Average of Neighbors Swift Java
1967 Number of Strings That Appear as Substrings in Word Swift Java
1966 Binary Searchable Numbers in an Unsorted Array Swift Java
1964 Find the Longest Valid Obstacle Course at Each Position Swift Java
1963 Minimum Number of Swaps to Make the String Balanced Swift Java
1962 Remove Stones to Minimize the Total Swift Java
1961 Check If String Is a Prefix of Array Swift Java
1960 Maximum Product of the Length of Two Palindromic Substrings Swift Java
1959 Minimum Total Space Wasted With K Resizing Operations Swift Java
1958 Check if Move is Legal Swift Java
1957 Delete Characters to Make Fancy String Swift Java
1956 Minimum Time For K Virus Variants to Spread Swift Java
1955 Count Number of Special Subsequences Swift Java
1954 Minimum Garden Perimeter to Collect Enough Apples Swift Java
1953 Maximum Number of Weeks for Which You Can Work Swift Java
1952 Three Divisors Swift Java
1950 Maximum of Minimum Values in All Subarrays Swift Java
1948 Delete Duplicate Folders in System Swift Java
1947 Maximum Compatibility Score Sum Swift Java
1946 Largest Number After Mutating Substring Swift Java
1945 Sum of Digits of String After Convert Swift Java
1944 Number of Visible People in a Queue Swift Java
1943 Describe the Painting Swift Java
1942 The Number of the Smallest Unoccupied Chair Swift Java
1941 Check if All Characters Have Equal Number of Occurrences Swift Java
1940 Longest Common Subsequence Between Sorted Arrays Swift Java
1938 Maximum Genetic Difference Query Swift Java
1937 Maximum Number of Points with Cost Swift Java
1936 Add Minimum Number of Rungs Swift Java
1935 Maximum Number of Words You Can Type Swift Java
1933 Check if String Is Decomposable Into Value-Equal Substrings Swift Java
1932 Merge BSTs to Create Single BST Swift Java
1931 Painting a Grid With Three Different Colors Swift Java
1930 Unique Length-3 Palindromic Subsequences Swift Java
1929 Concatenation of Array Swift Java
1928 Minimum Cost to Reach Destination in Time Swift Java
1927 Sum Game Swift Java
1926 Nearest Exit from Entrance in Maze Swift Java
1925 Count Square Sum Triples Swift Java
1924 Erect the Fence II Swift Java
1923 Longest Common Subpath Swift Java
1922 Count Good Numbers Swift Java
1921 Eliminate Maximum Number of Monsters Swift Java
1920 Build Array from Permutation Swift Java
1918 Kth Smallest Subarray Sum Swift Java
1916 Count Ways to Build Rooms in an Ant Colony Swift Java
1915 Number of Wonderful Substrings Swift Java
1914 Cyclically Rotating a Grid Swift Java
X 1913 Maximum Product Difference Between Two Pairs Swift Java
1912 Design Movie Rental System Swift Java
1911 Maximum Alternating Subsequence Sum Swift Java
1910 Remove All Occurrences of a Substring Swift Java
1909 Remove One Element to Make the Array Strictly Increasing Swift Java
1908 Game of Nim Swift Java
1906 Minimum Absolute Difference Queries Swift Java
1905 Count Sub Islands Swift Java
1904 The Number of Full Rounds You Have Played Swift Java
1903 Largest Odd Number in String Swift Java
1902 Depth of BST Given Insertion Order Swift Java
1901 Find a Peak Element II Swift Java
1900 The Earliest and Latest Rounds Where Players Compete Swift Java
1899 Merge Triplets to Form Target Triplet Swift Java
1898 Maximum Number of Removable Characters Swift Java
1897 Redistribute Characters to Make All Strings Equal Swift Java
1896 Minimum Cost to Change the Final Value of Expression Swift Java
1895 Largest Magic Square Swift Java
1894 Find the Student that Will Replace the Chalk Swift Java
1893 Check if All the Integers in a Range Are Covered Swift Java
1891 Cutting Ribbons Swift Java
1889 Minimum Space Wasted From Packaging Swift Java
1888 Minimum Number of Flips to Make the Binary String Alternating Swift Java
1887 Reduction Operations to Make the Array Elements Equal Swift Java
1886 Determine Whether Matrix Can Be Obtained By Rotation Swift Java
1885 Count Pairs in Two Arrays Swift Java
1884 Egg Drop With 2 Eggs and N Floors Swift Java
1883 Minimum Skips to Arrive at Meeting On Time Swift Java
1882 Process Tasks Using Servers Swift Java
1881 Maximum Value after Insertion Swift Java
1880 Check if Word Equals Summation of Two Words Swift Java
1879 Minimum XOR Sum of Two Arrays Swift Java
1878 Get Biggest Three Rhombus Sums in a Grid Swift Java
1877 Minimize Maximum Pair Sum in Array Swift Java
1876 Substrings of Size Three with Distinct Characters Swift Java
1874 Minimize Product Sum of Two Arrays Swift Java
X 1872 Stone Game VIII Swift Java
1871 Jump Game VII Swift Java
1870 Minimum Speed to Arrive on Time Swift Java
1869 Longer Contiguous Segments of Ones than Zeros Swift Java
1868 Product of Two Run-Length Encoded Arrays Swift Java
1866 Number of Ways to Rearrange Sticks With K Sticks Visible Swift Java
1865 Finding Pairs With a Certain Sum Swift Java
1864 Minimum Number of Swaps to Make the Binary String Alternating Swift Java
1863 Sum of All Subset XOR Totals Swift Java
1862 Sum of Floored Pairs Swift Java
1861 Rotating the Box Swift Java
1860 Incremental Memory Leak Swift Java
1859 Sorting the Sentence Swift Java
1858 Longest Word With All Prefixes Swift Java
1857 Largest Color Value in a Directed Graph Swift Java
1856 Maximum Subarray Min-Product Swift Java
1855 Maximum Distance Between a Pair of Values Swift Java
1854 Maximum Population Year Swift Java
1852 Distinct Numbers in Each Subarray Swift Java
1851 Minimum Interval to Include Each Query Swift Java
1850 Minimum Adjacent Swaps to Reach the Kth Smallest Number Swift Java
1849 Splitting a String Into Descending Consecutive Values Swift Java
1848 Minimum Distance to the Target Element Swift Java
1847 Closest Room Swift Java
1846 Maximum Element After Decreasing and Rearranging Swift Java
1845 Seat Reservation Manager Swift Java
1844 Replace All Digits with Characters Swift Java
1842 Next Palindrome Using Same Digits Swift Java
1840 Maximum Building Height Swift Java
1839 Longest Substring Of All Vowels in Order Swift Java
1838 Frequency of the Most Frequent Element Swift Java
1837 Sum of Digits in Base K Swift Java
1836 Remove Duplicates From an Unsorted Linked List Swift Java
1835 Find XOR Sum of All Pairs Bitwise AND Swift Java
1834 Single-Threaded CPU Swift Java
1833 Maximum Ice Cream Bars Swift Java
1832 Check if the Sentence Is Pangram Swift Java
1830 Minimum Number of Operations to Make String Sorted Swift Java
1829 Maximum XOR for Each Query Swift Java
1828 Queries on Number of Points Inside a Circle Swift Java
1827 Minimum Operations to Make the Array Increasing Swift Java
1826 Faulty Sensor Swift Java
1825 Finding MK Average Swift Java
1824 Minimum Sideway Jumps Swift Java
1823 Find the Winner of the Circular Game Swift Java
1822 Sign of the Product of an Array Swift Java
1820 Maximum Number of Accepted Invitations Swift Java
1819 Number of Different Subsequences GCDs Swift Java
1818 Minimum Absolute Sum Difference Swift Java
1817 Finding the Users Active Minutes Swift Java
1816 Truncate Sentence Swift Java
1815 Maximum Number of Groups Getting Fresh Donuts Swift Java
1814 Count Nice Pairs in an Array Swift Java
1813 Sentence Similarity III Swift Java
1812 Determine Color of a Chessboard Square Swift Java
1810 Minimum Path Cost in a Hidden Grid Swift Java
1808 Maximize Number of Nice Divisors Swift Java
1807 Evaluate the Bracket Pairs of a String Swift Java
1806 Minimum Number of Operations to Reinitialize a Permutation Swift Java
1805 Number of Different Integers in a String Swift Java
1804 Implement Trie II (Prefix Tree) Swift Java
1803 Count Pairs With XOR in a Range Swift Java
1802 Maximum Value at a Given Index in a Bounded Array Swift Java
1801 Number of Orders in the Backlog Swift Java
1800 Maximum Ascending Subarray Sum Swift Java
1799 Maximize Score After N Operations Swift Java
1798 Maximum Number of Consecutive Values You Can Make Swift Java
1797 Design Authentication Manager Swift Java
1796 Second Largest Digit in a String Swift Java
1794 Count Pairs of Equal Substrings With Minimum Difference Swift Java
1793 Maximum Score of a Good Subarray Swift Java
1792 Maximum Average Pass Ratio Swift Java
1791 Find Center of Star Graph Swift Java
1790 Check if One String Swap Can Make Strings Equal Swift Java
1788 Maximize the Beauty of the Garden Swift Java
1787 Make the XOR of All Segments Equal to Zero Swift Java
1786 Number of Restricted Paths From First to Last Node Swift Java
1785 Minimum Elements to Add to Form a Given Sum Swift Java
1784 Check if Binary String Has at Most One Segment of Ones Swift Java
1782 Count Pairs Of Nodes Swift Java
1781 Sum of Beauty of All Substrings Swift Java
1780 Check if Number is a Sum of Powers of Three Swift Java
1779 Find Nearest Point That Has the Same X or Y Coordinate Swift Java
1778 Shortest Path in a Hidden Grid Swift Java
1776 Car Fleet II Swift Java
1775 Equal Sum Arrays With Minimum Number of Operations Swift Java
1774 Closest Dessert Cost Swift Java
1773 Count Items Matching a Rule Swift Java
1772 Sort Features by Popularity Swift Java
1771 Maximize Palindrome Length From Subsequences Swift Java
1770 Maximum Score from Performing Multiplication Operations Swift Java
1769 Minimum Number of Operations to Move All Balls to Each Box Swift Java
1768 Merge Strings Alternately Swift Java
1766 Tree of Coprimes Swift Java
1765 Map of Highest Peak Swift Java
1764 Form Array by Concatenating Subarrays of Another Array Swift Java
1763 Longest Nice Substring Swift Java
1762 Buildings With an Ocean View Swift Java
1761 Minimum Degree of a Connected Trio in a Graph Swift Java
1760 Minimum Limit of Balls in a Bag Swift Java
1759 Count Number of Homogenous Substrings Swift Java
1758 Minimum Changes To Make Alternating Binary String Swift Java
1756 Design Most Recently Used Queue Swift Java
1755 Closest Subsequence Sum Swift Java
1754 Largest Merge Of Two Strings Swift Java
1753 Maximum Score From Removing Stones Swift Java
1752 Check if Array Is Sorted and Rotated Swift Java
1751 Maximum Number of Events That Can Be Attended II Swift Java
1750 Minimum Length of String After Deleting Similar Ends Swift Java
1749 Maximum Absolute Sum of Any Subarray Swift Java
1748 Sum of Unique Elements Swift Java
1746 Maximum Subarray Sum After One Operation Swift Java
1745 Palindrome Partitioning IV Swift Java
1744 Can You Eat Your Favorite Candy on Your Favorite Day? Swift Java
1743 Restore the Array From Adjacent Pairs Swift Java
1742 Maximum Number of Balls in a Box Swift Java
1740 Find Distance in a Binary Tree Swift Java
1739 Building Boxes Swift Java
1738 Find Kth Largest XOR Coordinate Value Swift Java
1737 Change Minimum Characters to Satisfy One of Three Conditions Swift Java
1736 Latest Time by Replacing Hidden Digits Swift Java
1735 Count Ways to Make Array With Product Swift Java
1734 Decode XORed Permutation Swift Java
1733 Minimum Number of People to Teach Swift Java
1732 Find the Highest Altitude Swift Java
1730 Shortest Path to Get Food Swift Java
1728 Cat and Mouse II Swift Java
1727 Largest Submatrix With Rearrangements Swift Java
1726 Tuple with Same Product Swift Java
1725 Number Of Rectangles That Can Form The Largest Square Swift Java
1724 Checking Existence of Edge Length Limited Paths II Swift Java
1723 Find Minimum Time to Finish All Jobs Swift Java
1722 Minimize Hamming Distance After Swap Operations Swift Java
X 1721 Swapping Nodes in a Linked List Swift Java
1720 Decode XORed Array Swift Java
1719 Number Of Ways To Reconstruct A Tree Swift Java
1718 Construct the Lexicographically Largest Valid Sequence Swift Java
1717 Maximum Score From Removing Substrings Swift Java
1716 Calculate Money in Leetcode Bank Swift Java
1714 Sum Of Special Evenly-Spaced Elements In Array Swift Java
1713 Minimum Operations to Make a Subsequence Swift Java
1712 Ways to Split Array Into Three Subarrays Swift Java
1711 Count Good Meals Swift Java
X 1710 Maximum Units on a Truck Swift Java
1708 Largest Subarray Length K Swift Java
1707 Maximum XOR With an Element From Array Swift Java
1706 Where Will the Ball Fall Swift Java
1705 Maximum Number of Eaten Apples Swift Java
X 1704 Determine if String Halves Are Alike Swift Java
1703 Minimum Adjacent Swaps for K Consecutive Ones Swift Java
1702 Maximum Binary String After Change Swift Java
1701 Average Waiting Time Swift Java
1700 Number of Students Unable to Eat Lunch Swift Java
1698 Number of Distinct Substrings in a String Swift Java
1697 Checking Existence of Edge Length Limited Paths Swift Java
X 1696 Jump Game VI Swift Java
X 1695 Maximum Erasure Value Swift Java
1694 Reformat Phone Number Swift Java
1692 Count Ways to Distribute Candies Swift Java
1691 Maximum Height by Stacking Cuboids Swift Java
1690 Stone Game VII Swift Java
X 1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Swift Java
1688 Count of Matches in Tournament Swift Java
1687 Delivering Boxes from Storage to Ports Swift Java
1686 Stone Game VI Swift Java
1685 Sum of Absolute Differences in a Sorted Array Swift Java
1684 Count the Number of Consistent Strings Swift Java
1682 Longest Palindromic Subsequence II Swift Java
1681 Minimum Incompatibility Swift Java
X 1680 Concatenation of Consecutive Binary Numbers Swift Java
X 1679 Max Number of K-Sum Pairs Swift Java
1678 Goal Parser Interpretation Swift Java
1676 Lowest Common Ancestor of a Binary Tree IV Swift Java
X 1675 Minimize Deviation in Array Swift Java
1674 Minimum Moves to Make Array Complementary Swift Java
X 1673 Find the Most Competitive Subsequence Swift Java
X 1672 Richest Customer Wealth Swift Java
1671 Minimum Number of Removals to Make Mountain Array Swift Java
1670 Design Front Middle Back Queue Swift Java
1669 Merge In Between Linked Lists Swift Java
1668 Maximum Repeating Substring Swift Java
1666 Change the Root of a Binary Tree Swift Java
1665 Minimum Initial Energy to Finish Tasks Swift Java
1664 Ways to Make a Fair Array Swift Java
X 1663 Smallest String With A Given Numeric Value Swift Java
1662 Check If Two String Arrays are Equivalent Swift Java
1660 Correct a Binary Tree Swift Java
1659 Maximize Grid Happiness Swift Java
X 1658 Minimum Operations to Reduce X to Zero Swift Java
X 1657 Determine if Two Strings Are Close Swift Java
1656 Design an Ordered Stream Swift Java
1655 Distribute Repeating Integers Swift Java
1654 Minimum Jumps to Reach Home Swift Java
1653 Minimum Deletions to Make String Balanced Swift Java
1652 Defuse the Bomb Swift Java
1650 Lowest Common Ancestor of a Binary Tree III Swift Java
X 1649 Create Sorted Array through Instructions Swift Java
1648 Sell Diminishing-Valued Colored Balls Swift Java
1647 Minimum Deletions to Make Character Frequencies Unique Swift Java
X 1646 Get Maximum in Generated Array Swift Java
1644 Lowest Common Ancestor of a Binary Tree II Swift Java
1643 Kth Smallest Instructions Swift Java
X 1642 Furthest Building You Can Reach Swift Java
X 1641 Count Sorted Vowel Strings Swift Java
X 1640 Check Array Formation Through Concatenation Swift Java
1639 Number of Ways to Form a Target String Given a Dictionary Swift Java
1638 Count Substrings That Differ by One Character Swift Java
1637 Widest Vertical Area Between Two Points Containing No Points Swift Java
1636 Sort Array by Increasing Frequency Swift Java
1634 Add Two Polynomials Represented as Linked Lists Swift Java
1632 Rank Transform of a Matrix Swift Java
X 1631 Path With Minimum Effort Swift Java
1630 Arithmetic Subarrays Swift Java
X 1629 Slowest Key Swift Java
1628 Design an Expression Tree With Evaluate Function Swift Java
1627 Graph Connectivity With Threshold Swift Java
1626 Best Team With No Conflicts Swift Java
1625 Lexicographically Smallest String After Applying Operations Swift Java
1624 Largest Substring Between Two Equal Characters Swift Java
1622 Fancy Sequence Swift Java
1621 Number of Sets of K Non-Overlapping Line Segments Swift Java
1620 Coordinate With Maximum Network Quality Swift Java
1619 Mean of Array After Removing Some Elements Swift Java
1618 Maximum Font to Fit a Sentence in a Screen Swift Java
1617 Count Subtrees With Max Distance Between Cities Swift Java
1616 Split Two Strings to Make Palindrome Swift Java
1615 Maximal Network Rank Swift Java
1614 Maximum Nesting Depth of the Parentheses Swift Java
1612 Check If Two Expression Trees are Equivalent Swift Java
1611 Minimum One Bit Operations to Make Integers Zero Swift Java
1610 Maximum Number of Visible Points Swift Java
1609 Even Odd Tree Swift Java
1608 Special Array With X Elements Greater Than or Equal X Swift Java
1606 Find Servers That Handled Most Number of Requests Swift Java
1605 Find Valid Matrix Given Row and Column Sums Swift Java
1604 Alert Using Same Key-Card Three or More Times in a One Hour Period Swift Java
1603 Design Parking System Swift Java
1602 Find Nearest Right Node in Binary Tree Swift Java
1601 Maximum Number of Achievable Transfer Requests Swift Java
1600 Throne Inheritance Swift Java
1599 Maximum Profit of Operating a Centennial Wheel Swift Java
1598 Crawler Log Folder Swift Java
1597 Build Binary Expression Tree From Infix Expression Swift Java
1595 Minimum Cost to Connect Two Groups of Points Swift Java
1594 Maximum Non Negative Product in a Matrix Swift Java
1593 Split a String Into the Max Number of Unique Substrings Swift Java
1592 Rearrange Spaces Between Words Swift Java
1591 Strange Printer II Swift Java
1590 Make Sum Divisible by P Swift Java
1589 Maximum Sum Obtained of Any Permutation Swift Java
1588 Sum of All Odd Length Subarrays Swift Java
1586 Binary Search Tree Iterator II Swift Java
1585 Check If String Is Transformable With Substring Sort Operations Swift Java
X 1584 Min Cost to Connect All Points Swift Java
1583 Count Unhappy Friends Swift Java
1582 Special Positions in a Binary Matrix Swift Java
1580 Put Boxes Into the Warehouse II Swift Java
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Swift Java
1578 Minimum Time to Make Rope Colorful Swift Java
1577 Number of Ways Where Square of Number Is Equal to Product of Two Numbers Swift Java
1576 Replace All ?'s to Avoid Consecutive Repeating Characters Swift Java
1575 Count All Possible Routes Swift Java
1574 Shortest Subarray to be Removed to Make Array Sorted Swift Java
1573 Number of Ways to Split a String Swift Java
1572 Matrix Diagonal Sum Swift Java
1570 Dot Product of Two Sparse Vectors Swift Java
1569 Number of Ways to Reorder Array to Get Same BST Swift Java
1568 Minimum Number of Days to Disconnect Island Swift Java
1567 Maximum Length of Subarray With Positive Product Swift Java
1566 Detect Pattern of Length M Repeated K or More Times Swift Java
1564 Put Boxes Into the Warehouse I Swift Java
1563 Stone Game V Swift Java
1562 Find Latest Group of Size M Swift Java
1561 Maximum Number of Coins You Can Get Swift Java
1560 Most Visited Sector in a Circular Track Swift Java
1559 Detect Cycles in 2D Grid Swift Java
1558 Minimum Numbers of Function Calls to Make Target Array Swift Java
1557 Minimum Number of Vertices to Reach All Nodes Swift Java
1556 Thousand Separator Swift Java
1554 Strings Differ by One Character Swift Java
1553 Minimum Number of Days to Eat N Oranges Swift Java
1552 Magnetic Force Between Two Balls Swift Java
X 1551 Minimum Operations to Make Array Equal Swift Java
1550 Three Consecutive Odds Swift Java
1548 The Most Similar Path in a Graph Swift Java
1547 Minimum Cost to Cut a Stick Swift Java
1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target Swift Java
1545 Find Kth Bit in Nth Binary String Swift Java
1544 Make The String Great Swift Java
1542 Find Longest Awesome Substring Swift Java
1541 Minimum Insertions to Balance a Parentheses String Swift Java
1540 Can Convert String in K Moves Swift Java
X 1539 Kth Missing Positive Number Swift Java
1538 Guess the Majority in a Hidden Array Swift Java
1537 Get the Maximum Score Swift Java
1536 Minimum Swaps to Arrange a Binary Grid Swift Java
1535 Find the Winner of an Array Game Swift Java
1534 Count Good Triplets Swift Java
1533 Find the Index of the Large Integer Swift Java
1531 String Compression II Swift Java
1530 Number of Good Leaf Nodes Pairs Swift Java
1529 Minimum Suffix Flips Swift Java
1528 Shuffle String Swift Java
1526 Minimum Number of Increments on Subarrays to Form a Target Array Swift Java
1525 Number of Good Ways to Split a String Swift Java
1524 Number of Sub-arrays With Odd Sum Swift Java
1523 Count Odd Numbers in an Interval Range Swift Java
1522 Diameter of N-Ary Tree Swift Java
1521 Find a Value of a Mysterious Function Closest to Target Swift Java
1520 Maximum Number of Non-Overlapping Substrings Swift Java
1519 Number of Nodes in the Sub-Tree With the Same Label Swift Java
X 1518 Water Bottles Swift Java
1516 Move Sub-Tree of N-Ary Tree Swift Java
1515 Best Position for a Service Centre Swift Java
1514 Path with Maximum Probability Swift Java
1513 Number of Substrings With Only 1s Swift Java
1512 Number of Good Pairs Swift Java
X 1510 Stone Game IV Swift Java
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Swift Java
1508 Range Sum of Sorted Subarray Sums Swift Java
1507 Reformat Date Swift Java
1506 Find Root of N-Ary Tree Swift Java
1505 Minimum Possible Integer After at Most K Adjacent Swaps On Digits Swift Java
1504 Count Submatrices With All Ones Swift Java
1503 Last Moment Before All Ants Fall Out of a Plank Swift Java
1502 Can Make Arithmetic Progression From Sequence Swift Java
1500 Design a File Sharing System Swift Java
1499 Max Value of Equation Swift Java
1498 Number of Subsequences That Satisfy the Given Sum Condition Swift Java
1497 Check If Array Pairs Are Divisible by k Swift Java
1496 Path Crossing Swift Java
1494 Parallel Courses II Swift Java
1493 Longest Subarray of 1's After Deleting One Element Swift Java
X 1492 The kth Factor of n Swift Java
1491 Average Salary Excluding the Minimum and Maximum Salary Swift Java
1490 Clone N-ary Tree Swift Java
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Swift Java
1488 Avoid Flood in The City Swift Java
1487 Making File Names Unique Swift Java
X 1486 XOR Operation in an Array Swift Java
1485 Clone Binary Tree With Random Pointer Swift Java
1483 Kth Ancestor of a Tree Node Swift Java
1482 Minimum Number of Days to Make m Bouquets Swift Java
1481 Least Number of Unique Integers after K Removals Swift Java
X 1480 Running Sum of 1d Array Swift Java
1478 Allocate Mailboxes Swift Java
1477 Find Two Non-overlapping Sub-arrays Each With Target Sum Swift Java
1476 Subrectangle Queries Swift Java
1475 Final Prices With a Special Discount in a Shop Swift Java
1474 Delete N Nodes After M Nodes of a Linked List Swift Java
1473 Paint House III Swift Java
1472 Design Browser History Swift Java
1471 The k Strongest Values in an Array Swift Java
1470 Shuffle the Array Swift Java
1469 Find All The Lonely Nodes Swift Java
1467 Probability of a Two Boxes Having The Same Number of Distinct Balls Swift Java
1466 Reorder Routes to Make All Paths Lead to the City Zero Swift Java
X 1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Swift Java
1464 Maximum Product of Two Elements in an Array Swift Java
X 1463 Cherry Pickup II Swift Java
1462 Course Schedule IV Swift Java
X 1461 Check If a String Contains All Binary Codes of Size K Swift Java
1460 Make Two Arrays Equal by Reversing Sub-arrays Swift Java
X 1458 Max Dot Product of Two Subsequences Swift Java
X 1457 Pseudo-Palindromic Paths in a Binary Tree Swift Java
1456 Maximum Number of Vowels in a Substring of Given Length Swift Java
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Swift Java
1453 Maximum Number of Darts Inside of a Circular Dartboard Swift Java
1452 People Whose List of Favorite Companies Is Not a Subset of Another List Swift Java
1451 Rearrange Words in a Sentence Swift Java
1450 Number of Students Doing Homework at a Given Time Swift Java
1449 Form Largest Integer With Digits That Add up to Target Swift Java
X 1448 Count Good Nodes in Binary Tree Swift Java
1447 Simplified Fractions Swift Java
X 1446 Consecutive Characters Swift Java
1444 Number of Ways of Cutting a Pizza Swift Java
1443 Minimum Time to Collect All Apples in a Tree Swift Java
1442 Count Triplets That Can Form Two Arrays of Equal XOR Swift Java
1441 Build an Array With Stack Operations Swift Java
1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows Swift Java
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Swift Java
X 1437 Check If All 1's Are at Least Length K Places Away Swift Java
1436 Destination City Swift Java
1434 Number of Ways to Wear Different Hats to Each Other Swift Java
1433 Check If a String Can Break Another String Swift Java
1432 Max Difference You Can Get From Changing an Integer Swift Java
1431 Kids With the Greatest Number of Candies Swift Java
1430 Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree Swift Java
1429 First Unique Number Swift Java
1428 Leftmost Column with at Least a One Swift Java
1427 Perform String Shifts Swift Java
1426 Counting Elements Swift Java
1425 Constrained Subsequence Sum Swift Java
1424 Diagonal Traverse II Swift Java
X 1423 Maximum Points You Can Obtain from Cards Swift Java
X 1422 Maximum Score After Splitting a String Swift Java
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons Swift Java
1419 Minimum Number of Frogs Croaking Swift Java
1418 Display Table of Food Orders in a Restaurant Swift Java
1417 Reformat The String Swift Java
1416 Restore The Array Swift Java
1415 The k-th Lexicographical String of All Happy Strings of Length n Swift Java
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Swift Java
X 1413 Minimum Value to Get Positive Step by Step Sum Swift Java
1411 Number of Ways to Paint N Ă— 3 Grid Swift Java
1410 HTML Entity Parser Swift Java
1409 Queries on a Permutation With Key Swift Java
1408 String Matching in an Array Swift Java
1406 Stone Game III Swift Java
1405 Longest Happy String Swift Java
1404 Number of Steps to Reduce a Number in Binary Representation to One Swift Java
1403 Minimum Subsequence in Non-Increasing Order Swift Java
1402 Reducing Dishes Swift Java
1401 Circle and Rectangle Overlapping Swift Java
1400 Construct K Palindrome Strings Swift Java
1399 Count Largest Group Swift Java
1397 Find All Good Strings Swift Java
X 1396 Design Underground System Swift Java
1395 Count Number of Teams Swift Java
1394 Find Lucky Integer in an Array Swift Java
1392 Longest Happy Prefix Swift Java
X 1391 Check if There is a Valid Path in a Grid Swift Java
X 1390 Four Divisors Swift Java
1389 Create Target Array in the Given Order Swift Java
1388 Pizza With 3n Slices Swift Java
1387 Sort Integers by The Power Value Swift Java
1386 Cinema Seat Allocation Swift Java
1385 Find the Distance Value Between Two Arrays Swift Java
1383 Maximum Performance of a Team Swift Java
X 1382 Balance a Binary Search Tree Swift Java
1381 Design a Stack With Increment Operation Swift Java
1380 Lucky Numbers in a Matrix Swift Java
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree Swift Java
1377 Frog Position After T Seconds Swift Java
1376 Time Needed to Inform All Employees Swift Java
1375 Number of Times Binary String Is Prefix-Aligned Swift Java
1374 Generate a String With Characters That Have Odd Counts Swift Java
X 1373 Maximum Sum BST in Binary Tree Swift Java
1372 Longest ZigZag Path in a Binary Tree Swift Java
1371 Find the Longest Substring Containing Vowels in Even Counts Swift Java
1370 Increasing Decreasing String Swift Java
1368 Minimum Cost to Make at Least One Valid Path in a Grid Swift Java
1367 Linked List in Binary Tree Swift Java
1366 Rank Teams by Votes Swift Java
1365 How Many Numbers Are Smaller Than the Current Number Swift Java
1363 Largest Multiple of Three Swift Java
1362 Closest Divisors Swift Java
1361 Validate Binary Tree Nodes Swift Java
1360 Number of Days Between Two Dates Swift Java
X 1359 Count All Valid Pickup and Delivery Options Swift Java
1358 Number of Substrings Containing All Three Characters Swift Java
1357 Apply Discount Every n Orders Swift Java
1356 Sort Integers by The Number of 1 Bits Swift Java
X 1354 Construct Target Array With Multiple Sums Swift Java
1353 Maximum Number of Events That Can Be Attended Swift Java
1352 Product of the Last K Numbers Swift Java
1351 Count Negative Numbers in a Sorted Matrix Swift Java
1349 Maximum Students Taking Exam Swift Java
1348 Tweet Counts Per Frequency Swift Java
1347 Minimum Number of Steps to Make Two Strings Anagram Swift Java
1346 Check If N and Its Double Exist Swift Java
1345 Jump Game IV Swift Java
X 1344 Angle Between Hands of a Clock Swift Java
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Swift Java
X 1342 Number of Steps to Reduce a Number to Zero Swift Java
1340 Jump Game V Swift Java
X 1339 Maximum Product of Splitted Binary Tree Swift Java
X 1338 Reduce Array Size to The Half Swift Java
X 1337 The K Weakest Rows in a Matrix Swift Java
1335 Minimum Difficulty of a Job Schedule Swift Java
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Swift Java
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Swift Java
1332 Remove Palindromic Subsequences Swift Java
X 1331 Rank Transform of an Array Swift Java
1330 Reverse Subarray To Maximize Array Value Swift Java
1329 Sort the Matrix Diagonally Swift Java
X 1328 Break a Palindrome Swift Java
1326 Minimum Number of Taps to Open to Water a Garden Swift Java
1325 Delete Leaves With a Given Value Swift Java
1324 Print Words Vertically Swift Java
1323 Maximum 69 Number Swift Java
1320 Minimum Distance to Type a Word Using Two Fingers Swift Java
1319 Number of Operations to Make Network Connected Swift Java
X 1318 Minimum Flips to Make a OR b Equal to c Swift Java
1317 Convert Integer to the Sum of Two No-Zero Integers Swift Java
1316 Distinct Echo Substrings Swift Java
1315 Sum of Nodes with Even-Valued Grandparent Swift Java
1314 Matrix Block Sum Swift Java
1313 Decompress Run-Length Encoded List Swift Java
1312 Minimum Insertion Steps to Make a String Palindrome Swift Java
1311 Get Watched Videos by Your Friends Swift Java
1310 XOR Queries of a Subarray Swift Java
1309 Decrypt String from Alphabet to Integer Mapping Swift Java
1307 Verbal Arithmetic Puzzle Swift Java
X 1306 Jump Game III Swift Java
X 1305 All Elements in Two Binary Search Trees Swift Java
1304 Find N Unique Integers Sum up to Zero Swift Java
X 1302 Deepest Leaves Sum Swift Java
1301 Number of Paths with Max Score Swift Java
1300 Sum of Mutated Array Closest to Target Swift Java
1299 Replace Elements with Greatest Element on Right Side Swift Java
1298 Maximum Candies You Can Get from Boxes Swift Java
1297 Maximum Number of Occurrences of a Substring Swift Java
1296 Divide Array in Sets of K Consecutive Numbers Swift Java
1295 Find Numbers with Even Number of Digits Swift Java
X 1293 Shortest Path in a Grid with Obstacles Elimination Swift Java
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold Swift Java
X 1291 Sequential Digits Swift Java
X 1290 Convert Binary Number in a Linked List to Integer Swift Java
1289 Minimum Falling Path Sum II Swift Java
X 1288 Remove Covered Intervals Swift Java
X 1287 Element Appearing More Than 25% In Sorted Array Swift Java
X 1286 Iterator for Combination Swift Java
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Swift Java
X 1283 Find the Smallest Divisor Given a Threshold Swift Java
1282 Group the People Given the Group Size They Belong To Swift Java
1281 Subtract the Product and Sum of Digits of an Integer Swift Java
1278 Palindrome Partitioning III Swift Java
X 1277 Count Square Submatrices with All Ones Swift Java
1276 Number of Burgers with No Waste of Ingredients Swift Java
X 1275 Find Winner on a Tic Tac Toe Game Swift Java
1274 Number of Ships in a Rectangle Swift Java
1273 Delete Tree Nodes Swift Java
1272 Remove Interval Swift Java
1271 Hexspeak Swift Java
1269 Number of Ways to Stay in the Same Place After Some Steps Swift Java
X 1268 Search Suggestions System Swift Java
1267 Count Servers that Communicate Swift Java
1266 Minimum Time Visiting All Points Swift Java
1265 Print Immutable Linked List in Reverse Swift Java
1263 Minimum Moves to Move a Box to Their Target Location Swift Java
1262 Greatest Sum Divisible by Three Swift Java
1261 Find Elements in a Contaminated Binary Tree Swift Java
1260 Shift 2D Grid Swift Java
1259 Handshakes That Don't Cross Swift Java
1258 Synonymous Sentences Swift Java
1257 Smallest Common Region Swift Java
1256 Encode Number Swift Java
1255 Maximum Score Words Formed by Letters Swift Java
1254 Number of Closed Islands Swift Java
1253 Reconstruct a 2-Row Binary Matrix Swift Java
1252 Cells with Odd Values in a Matrix Swift Java
1250 Check If It Is a Good Array Swift Java
X 1249 Minimum Remove to Make Valid Parentheses Swift Java
1248 Count Number of Nice Subarrays Swift Java
1247 Minimum Swaps to Make Strings Equal Swift Java
1246 Palindrome Removal Swift Java
1245 Tree Diameter Swift Java
1244 Design A Leaderboard Swift Java
1243 Array Transformation Swift Java
1240 Tiling a Rectangle with the Fewest Squares Swift Java
X 1239 Maximum Length of a Concatenated String with Unique Characters Swift Java
1238 Circular Permutation in Binary Representation Swift Java
1237 Find Positive Integer Solution for a Given Equation Swift Java
1236 Web Crawler Swift Java
X 1235 Maximum Profit in Job Scheduling Swift Java
1234 Replace the Substring for Balanced String Swift Java
1233 Remove Sub-Folders from the Filesystem Swift Java
1232 Check If It Is a Straight Line Swift Java
1231 Divide Chocolate Swift Java
1230 Toss Strange Coins Swift Java
1229 Meeting Scheduler Swift Java
1228 Missing Number In Arithmetic Progression Swift Java
1227 Airplane Seat Assignment Probability Swift Java
1224 Maximum Equal Frequency Swift Java
1223 Dice Roll Simulation Swift Java
1222 Queens That Can Attack the King Swift Java
1221 Split a String in Balanced Strings Swift Java
X 1220 Count Vowels Permutation Swift Java
X 1219 Path with Maximum Gold Swift Java
1218 Longest Arithmetic Subsequence of Given Difference Swift Java
X 1217 Minimum Cost to Move Chips to The Same Position Swift Java
1216 Valid Palindrome III Swift Java
1215 Stepping Numbers Swift Java
1214 Two Sum BSTs Swift Java
1213 Intersection of Three Sorted Arrays Swift Java
1210 Minimum Moves to Reach Target with Rotations Swift Java
X 1209 Remove All Adjacent Duplicates in String II Swift Java
1208 Get Equal Substrings Within Budget Swift Java
1207 Unique Number of Occurrences Swift Java
1206 Design Skiplist Swift Java
1203 Sort Items by Groups Respecting Dependencies Swift Java
X 1202 Smallest String With Swaps Swift Java
X 1201 Ugly Number III Swift Java
1200 Minimum Absolute Difference Swift Java
1199 Minimum Time to Build Blocks Swift Java
1198 Find Smallest Common Element in All Rows Swift Java
1197 Minimum Knight Moves Swift Java
1196 How Many Apples Can You Put into the Basket Swift Java
X 1192 Critical Connections in a Network Swift Java
1191 K-Concatenation Maximum Sum Swift Java
1190 Reverse Substrings Between Each Pair of Parentheses Swift Java
X 1189 Maximum Number of Balloons Swift Java
1187 Make Array Strictly Increasing Swift Java
X 1186 Maximum Subarray Sum with One Deletion Swift Java
1185 Day of the Week Swift Java
1184 Distance Between Bus Stops Swift Java
1183 Maximum Number of Ones Swift Java
1182 Shortest Distance to Target Color Swift Java
1181 Before and After Puzzle Swift Java
1180 Count Substrings with Only One Distinct Letter Swift Java
1178 Number of Valid Words for Each Puzzle Swift Java
1177 Can Make Palindrome from Substring Swift Java
1176 Diet Plan Performance Swift Java
1175 Prime Arrangements Swift Java
1172 Dinner Plate Stacks Swift Java
1171 Remove Zero Sum Consecutive Nodes from Linked List Swift Java
1170 Compare Strings by Frequency of the Smallest Character Swift Java
1169 Invalid Transactions Swift Java
1168 Optimize Water Distribution in a Village Swift Java
1167 Minimum Cost to Connect Sticks Swift Java
1166 Design File System Swift Java
1165 Single-Row Keyboard Swift Java
1163 Last Substring in Lexicographical Order Swift Java
1162 As Far from Land as Possible Swift Java
1161 Maximum Level Sum of a Binary Tree Swift Java
1160 Find Words That Can Be Formed by Characters Swift Java
1157 Online Majority Element In Subarray Swift Java
1156 Swap For Longest Repeated Character Substring Swift Java
1155 Number of Dice Rolls With Target Sum Swift Java
1154 Day of the Year Swift Java
1153 String Transforms Into Another String Swift Java
1152 Analyze User Website Visit Pattern Swift Java
1151 Minimum Swaps to Group All 1's Together Swift Java
1150 Check If a Number Is Majority Element in a Sorted Array Swift Java
1147 Longest Chunked Palindrome Decomposition Swift Java
1146 Snapshot Array Swift Java
1145 Binary Tree Coloring Game Swift Java
1144 Decrease Elements To Make Array Zigzag Swift Java
X 1143 Longest Common Subsequence Swift Java
1140 Stone Game II Swift Java
1139 Largest 1-Bordered Square Swift Java
1138 Alphabet Board Path Swift Java
X 1137 N-th Tribonacci Number Swift Java
1136 Parallel Courses Swift Java
1135 Connecting Cities With Minimum Cost Swift Java
1134 Armstrong Number Swift Java
1133 Largest Unique Number Swift Java
1131 Maximum of Absolute Value Expression Swift Java
1130 Minimum Cost Tree From Leaf Values Swift Java
1129 Shortest Path with Alternating Colors Swift Java
X 1128 Number of Equivalent Domino Pairs Swift Java
1125 Smallest Sufficient Team Swift Java
1124 Longest Well-Performing Interval Swift Java
X 1123 Lowest Common Ancestor of Deepest Leaves Swift Java
1122 Relative Sort Array Swift Java
1121 Divide Array Into Increasing Sequences Swift Java
1120 Maximum Average Subtree Swift Java
1119 Remove Vowels from a String Swift Java
1118 Number of Days in a Month Swift Java
1111 Maximum Nesting Depth of Two Valid Parentheses Strings Swift Java
1110 Delete Nodes And Return Forest Swift Java
1109 Corporate Flight Bookings Swift Java
1108 Defanging an IP Address Swift Java
1106 Parsing A Boolean Expression Swift Java
1105 Filling Bookcase Shelves Swift Java
1104 Path In Zigzag Labelled Binary Tree Swift Java
X 1103 Distribute Candies to People Swift Java
1102 Path With Maximum Minimum Value Swift Java
1101 The Earliest Moment When Everyone Become Friends Swift Java
1100 Find K-Length Substrings With No Repeated Characters Swift Java
1099 Two Sum Less Than K Swift Java
1096 Brace Expansion II Swift Java
1095 Find in Mountain Array Swift Java
X 1094 Car Pooling Swift Java
1093 Statistics from a Large Sample Swift Java
1092 Shortest Common Supersequence Swift Java
X 1091 Shortest Path in Binary Matrix Swift Java
1090 Largest Values From Labels Swift Java
1089 Duplicate Zeros Swift Java
1088 Confusing Number II Swift Java
1087 Brace Expansion Swift Java
1086 High Five Swift Java
1085 Sum of Digits in the Minimum Number Swift Java
1081 Smallest Subsequence of Distinct Characters Swift Java
1080 Insufficient Nodes in Root to Leaf Paths Swift Java
1079 Letter Tile Possibilities Swift Java
1078 Occurrences After Bigram Swift Java
X 1074 Number of Submatrices That Sum to Target Swift Java
1073 Adding Two Negabinary Numbers Swift Java
1072 Flip Columns For Maximum Number of Equal Rows Swift Java
1071 Greatest Common Divisor of Strings Swift Java
1067 Digit Count in Range Swift Java
1066 Campus Bikes II Swift Java
1065 Index Pairs of a String Swift Java
1064 Fixed Point Swift Java
1063 Number of Valid Subarrays Swift Java
1062 Longest Repeating Substring Swift Java
1061 Lexicographically Smallest Equivalent String Swift Java
1060 Missing Element in Sorted Array Swift Java
1059 All Paths from Source Lead to Destination Swift Java
1058 Minimize Rounding Error to Meet Target Swift Java
1057 Campus Bikes Swift Java
1056 Confusing Number Swift Java
1055 Shortest Way to Form String Swift Java
1054 Distant Barcodes Swift Java
1053 Previous Permutation With One Swap Swift Java
1052 Grumpy Bookstore Owner Swift Java
1051 Height Checker Swift Java
1049 Last Stone Weight II Swift Java
X 1048 Longest String Chain Swift Java
X 1047 Remove All Adjacent Duplicates In String Swift Java
X 1046 Last Stone Weight Swift Java
1044 Longest Duplicate Substring Swift Java
1043 Partition Array for Maximum Sum Swift Java
1042 Flower Planting With No Adjacent Swift Java
X 1041 Robot Bounded In Circle Swift Java
1040 Moving Stones Until Consecutive II Swift Java
1039 Minimum Score Triangulation of Polygon Swift Java
X 1038 Binary Search Tree to Greater Sum Tree Swift Java
1037 Valid Boomerang Swift Java
1036 Escape a Large Maze Swift Java
X 1035 Uncrossed Lines Swift Java
1034 Coloring A Border Swift Java
1033 Moving Stones Until Consecutive Swift Java
X 1032 Stream of Characters Swift Java
1031 Maximum Sum of Two Non-Overlapping Subarrays Swift Java
1030 Matrix Cells in Distance Order Swift Java
X 1029 Two City Scheduling Swift Java
X 1028 Recover a Tree From Preorder Traversal Swift Java
1027 Longest Arithmetic Subsequence Swift Java
X 1026 Maximum Difference Between Node and Ancestor Swift Java
1025 Divisor Game Swift Java
1024 Video Stitching Swift Java
1023 Camelcase Matching Swift Java
X 1022 Sum of Root To Leaf Binary Numbers Swift Java
1021 Remove Outermost Parentheses Swift Java
1020 Number of Enclaves Swift Java
1019 Next Greater Node In Linked List Swift Java
1018 Binary Prefix Divisible By 5 Swift Java
1017 Convert to Base -2 Swift Java
1016 Binary String With Substrings Representing 1 To N Swift Java
X 1015 Smallest Integer Divisible by K Swift Java
1014 Best Sightseeing Pair Swift Java
1013 Partition Array Into Three Parts With Equal Sum Swift Java
1012 Numbers With Repeated Digits Swift Java
1011 Capacity To Ship Packages Within D Days Swift Java
X 1010 Pairs of Songs With Total Durations Divisible by 60 Swift Java
X 1009 Complement of Base 10 Integer Swift Java
X 1008 Construct Binary Search Tree from Preorder Traversal Swift Java
X 1007 Minimum Domino Rotations For Equal Row Swift Java
1006 Clumsy Factorial Swift Java
1005 Maximize Sum Of Array After K Negations Swift Java
X 1004 Max Consecutive Ones III Swift Java
1003 Check If Word Is Valid After Substitutions Swift Java
1002 Find Common Characters Swift Java
1001 Grid Illumination Swift Java
1000 Minimum Cost to Merge Stones Swift Java
999 Available Captures for Rook Swift Java
998 Maximum Binary Tree II Swift Java
X 997 Find the Town Judge Swift Java
996 Number of Squareful Arrays Swift Java
995 Minimum Number of K Consecutive Bit Flips Swift Java
X 994 Rotting Oranges Swift Java
X 993 Cousins in Binary Tree Swift Java
992 Subarrays with K Different Integers Swift Java
X 991 Broken Calculator Swift Java
990 Satisfiability of Equality Equations Swift Java
989 Add to Array-Form of Integer Swift Java
988 Smallest String Starting From Leaf Swift Java
X 987 Vertical Order Traversal of a Binary Tree Swift Java
X 986 Interval List Intersections Swift Java
985 Sum of Even Numbers After Queries Swift Java
984 String Without AAA or BBB Swift Java
X 983 Minimum Cost For Tickets Swift Java
982 Triples with Bitwise AND Equal To Zero Swift Java
981 Time Based Key-Value Store Swift Java
X 980 Unique Paths III Swift Java
979 Distribute Coins in Binary Tree Swift Java
X 978 Longest Turbulent Subarray Swift Java
X 977 Squares of a Sorted Array Swift Java
976 Largest Perimeter Triangle Swift Java
975 Odd Even Jump Swift Java
974 Subarray Sums Divisible by K Swift Java
X 973 K Closest Points to Origin Swift Java
972 Equal Rational Numbers Swift Java
X 971 Flip Binary Tree To Match Preorder Traversal Swift Java
X 970 Powerful Integers Swift Java
X 969 Pancake Sorting Swift Java
X 968 Binary Tree Cameras Swift Java
X 967 Numbers With Same Consecutive Differences Swift Java
X 966 Vowel Spellchecker Swift Java
965 Univalued Binary Tree Swift Java
964 Least Operators to Express Number Swift Java
963 Minimum Area Rectangle II Swift Java
962 Maximum Width Ramp Swift Java
961 N-Repeated Element in Size 2N Array Swift Java
960 Delete Columns to Make Sorted III Swift Java
959 Regions Cut By Slashes Swift Java
958 Check Completeness of a Binary Tree Swift Java
957 Prison Cells After N Days Swift Java
956 Tallest Billboard Swift Java
955 Delete Columns to Make Sorted II Swift Java
X 954 Array of Doubled Pairs Swift Java
X 953 Verifying an Alien Dictionary Swift Java
X 952 Largest Component Size by Common Factor Swift Java
X 951 Flip Equivalent Binary Trees Swift Java
950 Reveal Cards In Increasing Order Swift Java
X 949 Largest Time for Given Digits Swift Java
X 948 Bag of Tokens Swift Java
947 Most Stones Removed with Same Row or Column Swift Java
X 946 Validate Stack Sequences Swift Java
945 Minimum Increment to Make Array Unique Swift Java
944 Delete Columns to Make Sorted Swift Java
X 943 Find the Shortest Superstring Swift Java
942 DI String Match Swift Java
X 941 Valid Mountain Array Swift Java
940 Distinct Subsequences II Swift Java
939 Minimum Area Rectangle Swift Java
X 938 Range Sum of BST Swift Java
937 Reorder Data in Log Files Swift Java
X 936 Stamping The Sequence Swift Java
935 Knight Dialer Swift Java
X 934 Shortest Bridge Swift Java
X 933 Number of Recent Calls Swift Java
932 Beautiful Array Swift Java
931 Minimum Falling Path Sum Swift Java
930 Binary Subarrays With Sum Swift Java
X 929 Unique Email Addresses Swift Java
928 Minimize Malware Spread II Swift Java
X 927 Three Equal Parts Swift Java
X 926 Flip String to Monotone Increasing Swift Java
925 Long Pressed Name Swift Java
924 Minimize Malware Spread Swift Java
X 923 3Sum With Multiplicity Swift Java
X 922 Sort Array By Parity II Swift Java
921 Minimum Add to Make Parentheses Valid Swift Java
920 Number of Music Playlists Swift Java
919 Complete Binary Tree Inserter Swift Java
X 918 Maximum Sum Circular Subarray Swift Java
X 917 Reverse Only Letters Swift Java
X 916 Word Subsets Swift Java
X 915 Partition Array into Disjoint Intervals Swift Java
914 X of a Kind in a Deck of Cards Swift Java
913 Cat and Mouse Swift Java
912 Sort an Array Swift Java
911 Online Election Swift Java
910 Smallest Range II Swift Java
909 Snakes and Ladders Swift Java
908 Smallest Range I Swift Java
907 Sum of Subarray Minimums Swift Java
906 Super Palindromes Swift Java
X 905 Sort Array By Parity Swift Java
904 Fruit Into Baskets Swift Java
903 Valid Permutations for DI Sequence Swift Java
X 902 Numbers At Most N Given Digit Set Swift Java
X 901 Online Stock Span Swift Java
900 RLE Iterator Swift Java
X 899 Orderly Queue Swift Java
898 Bitwise ORs of Subarrays Swift Java
X 897 Increasing Order Search Tree Swift Java
896 Monotonic Array Swift Java
X 895 Maximum Frequency Stack Swift Java
894 All Possible Full Binary Trees Swift Java
893 Groups of Special-Equivalent Strings Swift Java
892 Surface Area of 3D Shapes Swift Java
891 Sum of Subsequence Widths Swift Java
X 890 Find and Replace Pattern Swift Java
X 889 Construct Binary Tree from Preorder and Postorder Traversal Swift Java
888 Fair Candy Swap Swift Java
887 Super Egg Drop Swift Java
X 886 Possible Bipartition Swift Java
885 Spiral Matrix III Swift Java
884 Uncommon Words from Two Sentences Swift Java
883 Projection Area of 3D Shapes Swift Java
882 Reachable Nodes In Subdivided Graph Swift Java
X 881 Boats to Save People Swift Java
880 Decoded String at Index Swift Java
879 Profitable Schemes Swift Java
X 878 Nth Magical Number Swift Java
X 877 Stone Game Swift Java
X 876 Middle of the Linked List Swift Java
X 875 Koko Eating Bananas Swift Java
874 Walking Robot Simulation Swift Java
873 Length of Longest Fibonacci Subsequence Swift Java
872 Leaf-Similar Trees Swift Java
X 871 Minimum Number of Refueling Stops Swift Java
X 870 Advantage Shuffle Swift Java
X 869 Reordered Power of 2 Swift Java
868 Binary Gap Swift Java
X 867 Transpose Matrix Swift Java
866 Prime Palindrome Swift Java
X 865 Smallest Subtree with all the Deepest Nodes Swift Java
864 Shortest Path to Get All Keys Swift Java
863 All Nodes Distance K in Binary Tree Swift Java
X 862 Shortest Subarray with Sum at Least K Swift Java
861 Score After Flipping Matrix Swift Java
860 Lemonade Change Swift Java
X 859 Buddy Strings Swift Java
858 Mirror Reflection Swift Java
857 Minimum Cost to Hire K Workers Swift Java
X 856 Score of Parentheses Swift Java
855 Exam Room Swift Java
854 K-Similar Strings Swift Java
853 Car Fleet Swift Java
852 Peak Index in a Mountain Array Swift Java
851 Loud and Rich Swift Java
850 Rectangle Area II Swift Java
X 849 Maximize Distance to Closest Person Swift Java
X 848 Shifting Letters Swift Java
X 847 Shortest Path Visiting All Nodes Swift Java
846 Hand of Straights Swift Java
X 845 Longest Mountain in Array Swift Java
X 844 Backspace String Compare Swift Java
843 Guess the Word Swift Java
842 Split Array into Fibonacci Sequence Swift Java
X 841 Keys and Rooms Swift Java
840 Magic Squares In Grid Swift Java
839 Similar String Groups Swift Java
X 838 Push Dominoes Swift Java
837 New 21 Game Swift Java
836 Rectangle Overlap Swift Java
X 835 Image Overlap Swift Java
834 Sum of Distances in Tree Swift Java
833 Find And Replace in String Swift Java
X 832 Flipping an Image Swift Java
831 Masking Personal Information Swift Java
830 Positions of Large Groups Swift Java
829 Consecutive Numbers Sum Swift Java
828 Count Unique Characters of All Substrings of a Given String Swift Java
X 827 Making A Large Island Swift Java
826 Most Profit Assigning Work Swift Java
825 Friends Of Appropriate Ages Swift Java
X 824 Goat Latin Swift Java
X 823 Binary Trees With Factors Swift Java
822 Card Flipping Game Swift Java
X 821 Shortest Distance to a Character Swift Java
X 820 Short Encoding of Words Swift Java
819 Most Common Word Swift Java
818 Race Car Swift Java
817 Linked List Components Swift Java
X 816 Ambiguous Coordinates Swift Java
815 Bus Routes Swift Java
X 814 Binary Tree Pruning Swift Java
813 Largest Sum of Averages Swift Java
812 Largest Triangle Area Swift Java
811 Subdomain Visit Count Swift Java
810 Chalkboard XOR Game Swift Java
809 Expressive Words Swift Java
808 Soup Servings Swift Java
807 Max Increase to Keep City Skyline Swift Java
806 Number of Lines To Write String Swift Java
805 Split Array With Same Average Swift Java
X 804 Unique Morse Code Words Swift Java
803 Bricks Falling When Hit Swift Java
802 Find Eventual Safe States Swift Java
801 Minimum Swaps To Make Sequences Increasing Swift Java
800 Similar RGB Color Swift Java
X 799 Champagne Tower Swift Java
798 Smallest Rotation with Highest Score Swift Java
X 797 All Paths From Source to Target Swift Java
796 Rotate String Swift Java
X 795 Number of Subarrays with Bounded Maximum Swift Java
794 Valid Tic-Tac-Toe State Swift Java
793 Preimage Size of Factorial Zeroes Function Swift Java
X 792 Number of Matching Subsequences Swift Java
791 Custom Sort String Swift Java
X 790 Domino and Tromino Tiling Swift Java
789 Escape The Ghosts Swift Java
788 Rotated Digits Swift Java
X 787 Cheapest Flights Within K Stops Swift Java
786 K-th Smallest Prime Fraction Swift Java
X 785 Is Graph Bipartite? Swift Java
X 784 Letter Case Permutation Swift Java
X 783 Minimum Distance Between BST Nodes Swift Java
782 Transform to Chessboard Swift Java
781 Rabbits in Forest Swift Java
780 Reaching Points Swift Java
779 K-th Symbol in Grammar Swift Java
X 778 Swim in Rising Water Swift Java
777 Swap Adjacent in LR String Swift Java
776 Split BST Swift Java
775 Global and Local Inversions Swift Java
774 Minimize Max Distance to Gas Station Swift Java
773 Sliding Puzzle Swift Java
772 Basic Calculator III Swift Java
X 771 Jewels and Stones Swift Java
770 Basic Calculator IV Swift Java
769 Max Chunks To Make Sorted Swift Java
768 Max Chunks To Make Sorted II Swift Java
X 767 Reorganize String Swift Java
766 Toeplitz Matrix Swift Java
765 Couples Holding Hands Swift Java
X 764 Largest Plus Sign Swift Java
X 763 Partition Labels Swift Java
762 Prime Number of Set Bits in Binary Representation Swift Java
761 Special Binary String Swift Java
760 Find Anagram Mappings Swift Java
759 Employee Free Time Swift Java
758 Bold Words in String Swift Java
757 Set Intersection Size At Least Two Swift Java
756 Pyramid Transition Matrix Swift Java
755 Pour Water Swift Java
754 Reach a Number Swift Java
753 Cracking the Safe Swift Java
X 752 Open the Lock Swift Java
751 IP to CIDR Swift Java
750 Number Of Corner Rectangles Swift Java
749 Contain Virus Swift Java
X 748 Shortest Completing Word Swift Java
X 747 Largest Number At Least Twice of Others Swift Java
X 746 Min Cost Climbing Stairs Swift Java
745 Prefix and Suffix Search Swift Java
X 744 Find Smallest Letter Greater Than Target Swift Java
X 743 Network Delay Time Swift Java
742 Closest Leaf in a Binary Tree Swift Java
741 Cherry Pickup Swift Java
X 740 Delete and Earn Swift Java
X 739 Daily Temperatures Swift Java
738 Monotone Increasing Digits Swift Java
737 Sentence Similarity II Swift Java
736 Parse Lisp Expression Swift Java
X 735 Asteroid Collision Swift Java
734 Sentence Similarity Swift Java
X 733 Flood Fill Swift Java
732 My Calendar III Swift Java
731 My Calendar II Swift Java
730 Count Different Palindromic Subsequences Swift Java
X 729 My Calendar I Swift Java
728 Self Dividing Numbers Swift Java
727 Minimum Window Subsequence Swift Java
726 Number of Atoms Swift Java
X 725 Split Linked List in Parts Swift Java
724 Find Pivot Index Swift Java
723 Candy Crush Swift Java
722 Remove Comments Swift Java
X 721 Accounts Merge Swift Java
720 Longest Word in Dictionary Swift Java
X 719 Find K-th Smallest Pair Distance Swift Java
X 718 Maximum Length of Repeated Subarray Swift Java
717 1-bit and 2-bit Characters Swift Java
716 Max Stack Swift Java
715 Range Module Swift Java
X 714 Best Time to Buy and Sell Stock with Transaction Fee Swift Java
X 713 Subarray Product Less Than K Swift Java
712 Minimum ASCII Delete Sum for Two Strings Swift Java
711 Number of Distinct Islands II Swift Java
710 Random Pick with Blacklist Swift Java
709 To Lower Case Swift Java
708 Insert into a Sorted Circular Linked List Swift Java
707 Design Linked List Swift Java
X 706 Design HashMap Swift Java
X 705 Design HashSet Swift Java
X 704 Binary Search Swift Java
X 703 Kth Largest Element in a Stream Swift Java
702 Search in a Sorted Array of Unknown Size Swift Java
X 701 Insert into a Binary Search Tree Swift Java
700 Search in a Binary Search Tree Swift Java
699 Falling Squares Swift Java
698 Partition to K Equal Sum Subsets Swift Java
697 Degree of an Array Swift Java
X 696 Count Binary Substrings Swift Java
X 695 Max Area of Island Swift Java
694 Number of Distinct Islands Swift Java
693 Binary Number with Alternating Bits Swift Java
692 Top K Frequent Words Swift Java
691 Stickers to Spell Word Swift Java
690 Employee Importance Swift Java
X 689 Maximum Sum of 3 Non-Overlapping Subarrays Swift Java
688 Knight Probability in Chessboard Swift Java
687 Longest Univalue Path Swift Java
686 Repeated String Match Swift Java
685 Redundant Connection II Swift Java
X 684 Redundant Connection Swift Java
683 K Empty Slots Swift Java
X 682 Baseball Game Swift Java
681 Next Closest Time Swift Java
X 680 Valid Palindrome II Swift Java
679 24 Game Swift Java
X 678 Valid Parenthesis String Swift Java
X 677 Map Sum Pairs Swift Java
676 Implement Magic Dictionary Swift Java
675 Cut Off Trees for Golf Event Swift Java
X 674 Longest Continuous Increasing Subsequence Swift Java
X 673 Number of Longest Increasing Subsequence Swift Java
672 Bulb Switcher II Swift Java
671 Second Minimum Node In a Binary Tree Swift Java
670 Maximum Swap Swift Java
X 669 Trim a Binary Search Tree Swift Java
668 Kth Smallest Number in Multiplication Table Swift Java
X 667 Beautiful Arrangement II Swift Java
666 Path Sum IV Swift Java
X 665 Non-decreasing Array Swift Java
664 Strange Printer Swift Java
663 Equal Tree Partition Swift Java
X 662 Maximum Width of Binary Tree Swift Java
661 Image Smoother Swift Java
660 Remove 9 Swift Java
659 Split Array into Consecutive Subsequences Swift Java
X 658 Find K Closest Elements Swift Java
657 Robot Return to Origin Swift Java
656 Coin Path Swift Java
655 Print Binary Tree Swift Java
654 Maximum Binary Tree Swift Java
X 653 Two Sum IV - Input is a BST Swift Java
652 Find Duplicate Subtrees Swift Java
651 4 Keys Keyboard Swift Java
650 2 Keys Keyboard Swift Java
649 Dota2 Senate Swift Java
648 Replace Words Swift Java
X 647 Palindromic Substrings Swift Java
646 Maximum Length of Pair Chain Swift Java
X 645 Set Mismatch Swift Java
644 Maximum Average Subarray II Swift Java
643 Maximum Average Subarray I Swift Java
642 Design Search Autocomplete System Swift Java
641 Design Circular Deque Swift Java
640 Solve the Equation Swift Java
X 639 Decode Ways II Swift Java
638 Shopping Offers Swift Java
637 Average of Levels in Binary Tree Swift Java
636 Exclusive Time of Functions Swift Java
635 Design Log Storage System Swift Java
634 Find the Derangement of An Array Swift Java
X 633 Sum of Square Numbers Swift Java
632 Smallest Range Covering Elements from K Lists Swift Java
631 Design Excel Sum Formula Swift Java
X 630 Course Schedule III Swift Java
X 629 K Inverse Pairs Array Swift Java
628 Maximum Product of Three Numbers Swift Java
625 Minimum Factorization Swift Java
624 Maximum Distance in Arrays Swift Java
X 623 Add One Row to Tree Swift Java
X 622 Design Circular Queue Swift Java
X 621 Task Scheduler Swift Java
617 Merge Two Binary Trees Swift Java
616 Add Bold Tag in String Swift Java
X 611 Valid Triangle Number Swift Java
X 609 Find Duplicate File in System Swift Java
606 Construct String from Binary Tree Swift Java
X 605 Can Place Flowers Swift Java
604 Design Compressed String Iterator Swift Java
600 Non-negative Integers without Consecutive Ones Swift Java
599 Minimum Index Sum of Two Lists Swift Java
X 598 Range Addition II Swift Java
X 594 Longest Harmonious Subsequence Swift Java
X 593 Valid Square Swift Java
592 Fraction Addition and Subtraction Swift Java
591 Tag Validator Swift Java
X 590 N-ary Tree Postorder Traversal Swift Java
X 589 N-ary Tree Preorder Traversal Swift Java
588 Design In-Memory File System Swift Java
X 587 Erect the Fence Swift Java
X 583 Delete Operation for Two Strings Swift Java
582 Kill Process Swift Java
X 581 Shortest Unsorted Continuous Subarray Swift Java
X 576 Out of Boundary Paths Swift Java
X 575 Distribute Candies Swift Java
573 Squirrel Simulation Swift Java
572 Subtree of Another Tree Swift Java
568 Maximum Vacation Days Swift Java
X 567 Permutation in String Swift Java
X 566 Reshape the Matrix Swift Java
X 565 Array Nesting Swift Java
564 Find the Closest Palindrome Swift Java
X 563 Binary Tree Tilt Swift Java
562 Longest Line of Consecutive One in Matrix Swift Java
561 Array Partition Swift Java
X 560 Subarray Sum Equals K Swift Java
X 559 Maximum Depth of N-ary Tree Swift Java
558 Logical OR of Two Binary Grids Represented as Quad-Trees Swift Java
557 Reverse Words in a String III Swift Java
X 556 Next Greater Element III Swift Java
555 Split Concatenated Strings Swift Java
X 554 Brick Wall Swift Java
553 Optimal Division Swift Java
552 Student Attendance Record II Swift Java
551 Student Attendance Record I Swift Java
549 Binary Tree Longest Consecutive Sequence II Swift Java
548 Split Array with Equal Sum Swift Java
547 Number of Provinces Swift Java
X 546 Remove Boxes Swift Java
545 Boundary of Binary Tree Swift Java
544 Output Contest Matches Swift Java
X 543 Diameter of Binary Tree Swift Java
X 542 01 Matrix Swift Java
541 Reverse String II Swift Java
X 540 Single Element in a Sorted Array Swift Java
539 Minimum Time Difference Swift Java
X 538 Convert BST to Greater Tree Swift Java
X 537 Complex Number Multiplication Swift Java
536 Construct Binary Tree from String Swift Java
X 535 Encode and Decode TinyURL Swift Java
533 Lonely Pixel II Swift Java
X 532 K-diff Pairs in an Array Swift Java
531 Lonely Pixel I Swift Java
X 530 Minimum Absolute Difference in BST Swift Java
529 Minesweeper Swift Java
X 528 Random Pick with Weight Swift Java
527 Word Abbreviation Swift Java
X 526 Beautiful Arrangement Swift Java
X 525 Contiguous Array Swift Java
X 524 Longest Word in Dictionary through Deleting Swift Java
523 Continuous Subarray Sum Swift Java
522 Longest Uncommon Subsequence II Swift Java
X 521 Longest Uncommon Subsequence I Swift Java
X 520 Detect Capital Swift Java
519 Random Flip Matrix Swift Java
X 518 Coin Change 2 Swift Java
517 Super Washing Machines Swift Java
X 516 Longest Palindromic Subsequence Swift Java
515 Find Largest Value in Each Tree Row Swift Java
514 Freedom Trail Swift Java
513 Find Bottom Left Tree Value Swift Java
510 Inorder Successor in BST II Swift Java
X 509 Fibonacci Number Swift Java
508 Most Frequent Subtree Sum Swift Java
507 Perfect Number Swift Java
X 506 Relative Ranks Swift Java
505 The Maze II Swift Java
504 Base 7 Swift Java
503 Next Greater Element II Swift Java
502 IPO Swift Java
X 501 Find Mode in Binary Search Tree Swift Java
500 Keyboard Row Swift Java
499 The Maze III Swift Java
X 498 Diagonal Traverse Swift Java
X 497 Random Point in Non-overlapping Rectangles Swift Java
X 496 Next Greater Element I Swift Java
X 495 Teemo Attacking Swift Java
494 Target Sum Swift Java
493 Reverse Pairs Swift Java
492 Construct the Rectangle Swift Java
491 Increasing Subsequences Swift Java
490 The Maze Swift Java
489 Robot Room Cleaner Swift Java
488 Zuma Game Swift Java
487 Max Consecutive Ones II Swift Java
486 Predict the Winner Swift Java
X 485 Max Consecutive Ones Swift Java
484 Find Permutation Swift Java
483 Smallest Good Base Swift Java
482 License Key Formatting Swift Java
481 Magical String Swift Java
X 480 Sliding Window Median Swift Java
479 Largest Palindrome Product Swift Java
X 478 Generate Random Point in a Circle Swift Java
X 477 Total Hamming Distance Swift Java
X 476 Number Complement Swift Java
X 475 Heaters Swift Java
X 474 Ones and Zeroes Swift Java
X 473 Matchsticks to Square Swift Java
X 472 Concatenated Words Swift Java
471 Encode String with Shortest Length Swift Java
X 470 Implement Rand10() Using Rand7() Swift Java
469 Convex Polygon Swift Java
X 468 Validate IP Address Swift Java
467 Unique Substrings in Wraparound String Swift Java
466 Count The Repetitions Swift Java
465 Optimal Account Balancing Swift Java
X 464 Can I Win Swift Java
X 463 Island Perimeter Swift Java
X 462 Minimum Moves to Equal Array Elements II Swift Java
X 461 Hamming Distance Swift Java
460 LFU Cache Swift Java
X 459 Repeated Substring Pattern Swift Java
458 Poor Pigs Swift Java
457 Circular Array Loop Swift Java
X 456 132 Pattern Swift Java
455 Assign Cookies Swift Java
X 454 4Sum II Swift Java
X 453 Minimum Moves to Equal Array Elements Swift Java
X 452 Minimum Number of Arrows to Burst Balloons Swift Java
X 451 Sort Characters By Frequency Swift Java
X 450 Delete Node in a BST Swift Java
X 449 Serialize and Deserialize BST Swift Java
X 448 Find All Numbers Disappeared in an Array Swift Java
447 Number of Boomerangs Swift Java
X 446 Arithmetic Slices II - Subsequence Swift Java
X 445 Add Two Numbers II Swift Java
444 Sequence Reconstruction Swift Java
X 443 String Compression Swift Java
X 442 Find All Duplicates in an Array Swift Java
X 441 Arranging Coins Swift Java
440 K-th Smallest in Lexicographical Order Swift Java
439 Ternary Expression Parser Swift Java
X 438 Find All Anagrams in a String Swift Java
X 437 Path Sum III Swift Java
436 Find Right Interval Swift Java
X 435 Non-overlapping Intervals Swift Java
X 434 Number of Segments in a String Swift Java
433 Minimum Genetic Mutation Swift Java
432 All O`one Data Structure Swift Java
431 Encode N-ary Tree to Binary Tree Swift Java
X 430 Flatten a Multilevel Doubly Linked List Swift Java
X 429 N-ary Tree Level Order Traversal Swift Java
428 Serialize and Deserialize N-ary Tree Swift Java
427 Construct Quad Tree Swift Java
426 Convert Binary Search Tree to Sorted Doubly Linked List Swift Java
425 Word Squares Swift Java
424 Longest Repeating Character Replacement Swift Java
X 423 Reconstruct Original Digits from English Swift Java
422 Valid Word Square Swift Java
X 421 Maximum XOR of Two Numbers in an Array Swift Java
420 Strong Password Checker Swift Java
X 419 Battleships in a Board Swift Java
418 Sentence Screen Fitting Swift Java
X 417 Pacific Atlantic Water Flow Swift Java
X 416 Partition Equal Subset Sum Swift Java
415 Add Strings Swift Java
X 414 Third Maximum Number Swift Java
X 413 Arithmetic Slices Swift Java
X 412 Fizz Buzz Swift Java
411 Minimum Unique Word Abbreviation Swift Java
410 Split Array Largest Sum Swift Java
X 409 Longest Palindrome Swift Java
408 Valid Word Abbreviation Swift Java
X 407 Trapping Rain Water II Swift Java
X 406 Queue Reconstruction by Height Swift Java
405 Convert a Number to Hexadecimal Swift Java
X 404 Sum of Left Leaves Swift Java
403 Frog Jump Swift Java
X 402 Remove K Digits Swift Java
X 401 Binary Watch Swift Java
400 Nth Digit Swift Java
X 399 Evaluate Division Swift Java
398 Random Pick Index Swift Java
397 Integer Replacement Swift Java
396 Rotate Function Swift Java
X 395 Longest Substring with At Least K Repeating Characters Swift Java
X 394 Decode String Swift Java
393 UTF-8 Validation Swift Java
X 392 Is Subsequence Swift Java
X 391 Perfect Rectangle Swift Java
390 Elimination Game Swift Java
X 389 Find the Difference Swift Java
X 388 Longest Absolute File Path Swift Java
X 387 First Unique Character in a String Swift Java
386 Lexicographical Numbers Swift Java
385 Mini Parser Swift Java
X 384 Shuffle an Array Swift Java
X 383 Ransom Note Swift Java
X 382 Linked List Random Node Swift Java
381 Insert Delete GetRandom O(1) - Duplicates allowed Swift Java
X 380 Insert Delete GetRandom O(1) Swift Java
379 Design Phone Directory Swift Java
X 378 Kth Smallest Element in a Sorted Matrix Swift Java
X 377 Combination Sum IV Swift Java
X 376 Wiggle Subsequence Swift Java
375 Guess Number Higher or Lower II Swift Java
X 374 Guess Number Higher or Lower Swift Java
373 Find K Pairs with Smallest Sums Swift Java
X 372 Super Pow Swift Java
X 371 Sum of Two Integers Swift Java
370 Range Addition Swift Java
369 Plus One Linked List Swift Java
X 368 Largest Divisible Subset Swift Java
X 367 Valid Perfect Square Swift Java
X 366 Find Leaves of Binary Tree Swift Java
365 Water and Jug Problem Swift Java
364 Nested List Weight Sum II Swift Java
X 363 Max Sum of Rectangle No Larger Than K Swift Java
362 Design Hit Counter Swift Java
361 Bomb Enemy Swift Java
360 Sort Transformed Array Swift Java
X 359 Logger Rate Limiter Swift Java
358 Rearrange String k Distance Apart Swift Java
357 Count Numbers with Unique Digits Swift Java
356 Line Reflection Swift Java
355 Design Twitter Swift Java
X 354 Russian Doll Envelopes Swift Java
353 Design Snake Game Swift Java
352 Data Stream as Disjoint Intervals Swift Java
351 Android Unlock Patterns Swift Java
X 350 Intersection of Two Arrays II Swift Java
X 349 Intersection of Two Arrays Swift Java
348 Design Tic-Tac-Toe Swift Java
X 347 Top K Frequent Elements Swift Java
346 Moving Average from Data Stream Swift Java
X 345 Reverse Vowels of a String Swift Java
X 344 Reverse String Swift Java
343 Integer Break Swift Java
X 342 Power of Four Swift Java
X 341 Flatten Nested List Iterator Swift Java
340 Longest Substring with At Most K Distinct Characters Swift Java
339 Nested List Weight Sum Swift Java
X 338 Counting Bits Swift Java
337 House Robber III Swift Java
336 Palindrome Pairs Swift Java
335 Self Crossing Swift Java
X 334 Increasing Triplet Subsequence Swift Java
333 Largest BST Subtree Swift Java
X 332 Reconstruct Itinerary Swift Java
X 331 Verify Preorder Serialization of a Binary Tree Swift Java
X 330 Patching Array Swift Java
X 329 Longest Increasing Path in a Matrix Swift Java
X 328 Odd Even Linked List Swift Java
327 Count of Range Sum Swift Java
X 326 Power of Three Swift Java
325 Maximum Size Subarray Sum Equals k Swift Java
324 Wiggle Sort II Swift Java
323 Number of Connected Components in an Undirected Graph Swift Java
X 322 Coin Change Swift Java
321 Create Maximum Number Swift Java
320 Generalized Abbreviation Swift Java
319 Bulb Switcher Swift Java
X 318 Maximum Product of Word Lengths Swift Java
317 Shortest Distance from All Buildings Swift Java
X 316 Remove Duplicate Letters Swift Java
X 315 Count of Smaller Numbers After Self Swift Java
314 Binary Tree Vertical Order Traversal Swift Java
313 Super Ugly Number Swift Java
X 312 Burst Balloons Swift Java
311 Sparse Matrix Multiplication Swift Java
X 310 Minimum Height Trees Swift Java
X 309 Best Time to Buy and Sell Stock with Cooldown Swift Java
308 Range Sum Query 2D - Mutable Swift Java
X 307 Range Sum Query - Mutable Swift Java
306 Additive Number Swift Java
305 Number of Islands II Swift Java
X 304 Range Sum Query 2D - Immutable Swift Java
303 Range Sum Query - Immutable Swift Java
302 Smallest Rectangle Enclosing Black Pixels Swift Java
301 Remove Invalid Parentheses Swift Java
X 300 Longest Increasing Subsequence Swift Java
X 299 Bulls and Cows Swift Java
298 Binary Tree Longest Consecutive Sequence Swift Java
X 297 Serialize and Deserialize Binary Tree Swift Java
296 Best Meeting Point Swift Java
X 295 Find Median from Data Stream Swift Java
294 Flip Game II Swift Java
293 Flip Game Swift Java
292 Nim Game Swift Java
291 Word Pattern II Swift Java
X 290 Word Pattern Swift Java
X 289 Game of Life Swift Java
288 Unique Word Abbreviation Swift Java
X 287 Find the Duplicate Number Swift Java
286 Walls and Gates Swift Java
285 Inorder Successor in BST Swift Java
X 284 Peeking Iterator Swift Java
X 283 Move Zeroes Swift Java
X 282 Expression Add Operators Swift Java
281 Zigzag Iterator Swift Java
280 Wiggle Sort Swift Java
X 279 Perfect Squares Swift Java
X 278 First Bad Version Swift Java
277 Find the Celebrity Swift Java
276 Paint Fence Swift Java
X 275 H-Index II Swift Java
X 274 H-Index Swift Java
X 273 Integer to English Words Swift Java
272 Closest Binary Search Tree Value II Swift Java
271 Encode and Decode Strings Swift Java
270 Closest Binary Search Tree Value Swift Java
269 Alien Dictionary Swift Java
X 268 Missing Number Swift Java
267 Palindrome Permutation II Swift Java
266 Palindrome Permutation Swift Java
265 Paint House II Swift Java
X 264 Ugly Number II Swift Java
X 263 Ugly Number Swift Java
261 Graph Valid Tree Swift Java
X 260 Single Number III Swift Java
259 3Sum Smaller Swift Java
X 258 Add Digits Swift Java
257 Binary Tree Paths Swift Java
256 Paint House Swift Java
255 Verify Preorder Sequence in Binary Search Tree Swift Java
254 Factor Combinations Swift Java
X 253 Meeting Rooms II Swift Java
X 252 Meeting Rooms Swift Java
251 Flatten 2D Vector Swift Java
250 Count Univalue Subtrees Swift Java
249 Group Shifted Strings Swift Java
248 Strobogrammatic Number III Swift Java
247 Strobogrammatic Number II Swift Java
246 Strobogrammatic Number Swift Java
245 Shortest Word Distance III Swift Java
244 Shortest Word Distance II Swift Java
243 Shortest Word Distance Swift Java
X 242 Valid Anagram Swift Java
X 241 Different Ways to Add Parentheses Swift Java
X 240 Search a 2D Matrix II Swift Java
X 239 Sliding Window Maximum Swift Java
X 238 Product of Array Except Self Swift Java
X 237 Delete Node in a Linked List Swift Java
X 236 Lowest Common Ancestor of a Binary Tree Swift Java
X 235 Lowest Common Ancestor of a Binary Search Tree Swift Java
X 234 Palindrome Linked List Swift Java
233 Number of Digit One Swift Java
232 Implement Queue using Stacks Swift Java
X 231 Power of Two Swift Java
X 230 Kth Smallest Element in a BST Swift Java
X 229 Majority Element II Swift Java
X 228 Summary Ranges Swift Java
X 227 Basic Calculator II Swift Java
X 226 Invert Binary Tree Swift Java
X 225 Implement Stack using Queues Swift Java
X 224 Basic Calculator Swift Java
223 Rectangle Area Swift Java
X 222 Count Complete Tree Nodes Swift Java
X 221 Maximal Square Swift Java
X 220 Contains Duplicate III Swift Java
X 219 Contains Duplicate II Swift Java
X 218 The Skyline Problem Swift Java
X 217 Contains Duplicate Swift Java
X 216 Combination Sum III Swift Java
X 215 Kth Largest Element in an Array Swift Java
214 Shortest Palindrome Swift Java
213 House Robber II Swift Java
X 212 Word Search II Swift Java
211 Design Add and Search Words Data Structure Swift Java
X 210 Course Schedule II Swift Java
X 209 Minimum Size Subarray Sum Swift Java
X 208 Implement Trie (Prefix Tree) Swift Java
X 207 Course Schedule Swift Java
X 206 Reverse Linked List Swift Java
X 205 Isomorphic Strings Swift Java
X 204 Count Primes Swift Java
203 Remove Linked List Elements Swift Java
X 202 Happy Number Swift Java
X 201 Bitwise AND of Numbers Range Swift Java
X 200 Number of Islands Swift Java
X 199 Binary Tree Right Side View Swift Java
198 House Robber Swift Java
X 191 Number of 1 Bits Swift Java
X 190 Reverse Bits Swift Java
X 189 Rotate Array Swift Java
X 188 Best Time to Buy and Sell Stock IV Swift Java
X 187 Repeated DNA Sequences Swift Java
186 Reverse Words in a String II Swift Java
X 179 Largest Number Swift Java
X 174 Dungeon Game Swift Java
X 173 Binary Search Tree Iterator Swift Java
X 172 Factorial Trailing Zeroes Swift Java
X 171 Excel Sheet Column Number Swift Java
170 Two Sum III - Data structure design Swift Java
X 169 Majority Element Swift Java
X 168 Excel Sheet Column Title Swift Java
X 167 Two Sum II - Input Array Is Sorted Swift Java
166 Fraction to Recurring Decimal Swift Java
X 165 Compare Version Numbers Swift Java
X 164 Maximum Gap Swift Java
163 Missing Ranges Swift Java
X 162 Find Peak Element Swift Java
161 One Edit Distance Swift Java
X 160 Intersection of Two Linked Lists Swift Java
159 Longest Substring with At Most Two Distinct Characters Swift Java
158 Read N Characters Given read4 II - Call Multiple Times Swift Java
157 Read N Characters Given Read4 Swift Java
156 Binary Tree Upside Down Swift Java
X 155 Min Stack Swift Java
X 154 Find Minimum in Rotated Sorted Array II Swift Java
X 153 Find Minimum in Rotated Sorted Array Swift Java
X 152 Maximum Product Subarray Swift Java
151 Reverse Words in a String Swift Java
X 150 Evaluate Reverse Polish Notation Swift Java
149 Max Points on a Line Swift Java
X 148 Sort List Swift Java
X 147 Insertion Sort List Swift Java
X 146 LRU Cache Swift Java
X 145 Binary Tree Postorder Traversal Swift Java
X 144 Binary Tree Preorder Traversal Swift Java
X 143 Reorder List Swift Java
X 142 Linked List Cycle II Swift Java
X 141 Linked List Cycle Swift Java
X 140 Word Break II Swift Java
X 139 Word Break Swift Java
X 138 Copy List with Random Pointer Swift Java
X 137 Single Number II Swift Java
X 136 Single Number Swift Java
X 135 Candy Swift Java
X 134 Gas Station Swift Java
X 133 Clone Graph Swift Java
X 132 Palindrome Partitioning II Swift Java
X 131 Palindrome Partitioning Swift Java
X 130 Surrounded Regions Swift Java
X 129 Sum Root to Leaf Numbers Swift Java
X 128 Longest Consecutive Sequence Swift Java
127 Word Ladder Swift Java
126 Word Ladder II Swift Java
X 125 Valid Palindrome Swift Java
X 124 Binary Tree Maximum Path Sum Swift Java
X 123 Best Time to Buy and Sell Stock III Swift Java
X 122 Best Time to Buy and Sell Stock II Swift Java
X 121 Best Time to Buy and Sell Stock Swift Java
X 120 Triangle Swift Java
X 119 Pascal's Triangle II Swift Java
X 118 Pascal's Triangle Swift Java
X 117 Populating Next Right Pointers in Each Node II Swift Java
X 116 Populating Next Right Pointers in Each Node Swift Java
115 Distinct Subsequences Swift Java
X 114 Flatten Binary Tree to Linked List Swift Java
113 Path Sum II Swift Java
X 112 Path Sum Swift Java
X 111 Minimum Depth of Binary Tree Swift Java
X 110 Balanced Binary Tree Swift Java
X 109 Convert Sorted List to Binary Search Tree Swift Java
X 108 Convert Sorted Array to Binary Search Tree Swift Java
107 Binary Tree Level Order Traversal II Swift Java
106 Construct Binary Tree from Inorder and Postorder Traversal Swift Java
X 105 Construct Binary Tree from Preorder and Inorder Traversal Swift Java
X 104 Maximum Depth of Binary Tree Swift Java
103 Binary Tree Zigzag Level Order Traversal Swift Java
102 Binary Tree Level Order Traversal Swift Java
101 Symmetric Tree Swift Java
X 100 Same Tree Swift Java
X 99 Recover Binary Search Tree Swift Java
X 98 Validate Binary Search Tree Swift Java
X 97 Interleaving String Swift Java
X 96 Unique Binary Search Trees Swift Java
X 95 Unique Binary Search Trees II Swift Java
X 94 Binary Tree Inorder Traversal Swift Java
X 93 Restore IP Addresses Swift Java
X 92 Reverse Linked List II Swift Java
X 91 Decode Ways Swift Java
X 90 Subsets II Swift Java
X 89 Gray Code Swift Java
88 Merge Sorted Array Swift Java
87 Scramble String Swift Java
X 86 Partition List Swift Java
X 85 Maximal Rectangle Swift Java
X 84 Largest Rectangle in Histogram Swift Java
X 83 Remove Duplicates from Sorted List Swift Java
X 82 Remove Duplicates from Sorted List II Swift Java
X 81 Search in Rotated Sorted Array II Swift Java
X 80 Remove Duplicates from Sorted Array II Swift Java
X 79 Word Search Swift Java
X 78 Subsets Swift Java
X 77 Combinations Swift Java
X 76 Minimum Window Substring Swift Java
X 75 Sort Colors Swift Java
X 74 Search a 2D Matrix Swift Java
X 73 Set Matrix Zeroes Swift Java
X 72 Edit Distance Swift Java
X 71 Simplify Path Swift Java
X 70 Climbing Stairs Swift Java
X 69 Sqrt(x) Swift Java
68 Text Justification Swift Java
X 67 Add Binary Swift Java
X 66 Plus One Swift Java
65 Valid Number Swift Java
X 64 Minimum Path Sum Swift Java
X 63 Unique Paths II Swift Java
X 62 Unique Paths Swift Java
X 61 Rotate List Swift Java
X 60 Permutation Sequence Swift Java
X 59 Spiral Matrix II Swift Java
X 58 Length of Last Word Swift Java
X 57 Insert Interval Swift Java
56 Merge Intervals Swift Java
X 55 Jump Game Swift Java
X 54 Spiral Matrix Swift Java
X 53 Maximum Subarray Swift Java
X 52 N-Queens II Swift Java
X 51 N-Queens Swift Java
X 50 Pow(x, n) Swift Java
X 49 Group Anagrams Swift Java
X 48 Rotate Image Swift Java
X 47 Permutations II Swift Java
X 46 Permutations Swift Java
X 45 Jump Game II Swift Java
44 Wildcard Matching Swift Java
X 43 Multiply Strings Swift Java
X 42 Trapping Rain Water Swift Java
X 41 First Missing Positive Swift Java
40 Combination Sum II Swift Java
X 39 Combination Sum Swift Java
38 Count and Say Swift Java
X 37 Sudoku Solver Swift Java
X 36 Valid Sudoku Swift Java
X 35 Search Insert Position Swift Java
X 34 Find First and Last Position of Element in Sorted Array Swift Java
X 33 Search in Rotated Sorted Array Swift Java
X 32 Longest Valid Parentheses Swift Java
X 31 Next Permutation Swift Java
30 Substring with Concatenation of All Words Swift Java
X 29 Divide Two Integers Swift Java
28 Find the Index of the First Occurrence in a String Swift Java
27 Remove Element Swift Java
X 26 Remove Duplicates from Sorted Array Swift Java
25 Reverse Nodes in k-Group Swift Java
X 24 Swap Nodes in Pairs Swift Java
X 23 Merge k Sorted Lists Swift Java
X 22 Generate Parentheses Swift Java
X 21 Merge Two Sorted Lists Swift Java
X 20 Valid Parentheses Swift Java
X 19 Remove Nth Node From End of List Swift Java
18 4Sum Swift Java
X 17 Letter Combinations of a Phone Number Swift Java
X 16 3Sum Closest Swift Java
X 15 3Sum Swift Java
X 14 Longest Common Prefix Swift Java
X 13 Roman to Integer Swift Java
X 12 Integer to Roman Swift Java
X 11 Container With Most Water Swift Java
10 Regular Expression Matching Swift Java
X 9 Palindrome Number Swift Java
X 8 String to Integer (atoi) Swift Java
X 7 Reverse Integer Swift Java
X 6 Zigzag Conversion Swift Java
X 5 Longest Palindromic Substring Swift Java
X 4 Median of Two Sorted Arrays Swift Java
X 3 Longest Substring Without Repeating Characters Swift Java
X 2 Add Two Numbers Swift Java
X 1 Two Sum Swift Java

About

This repo presents all the solution I passed on LeeCode, should be used AS a Reference for study purpose.

License:MIT License


Languages

Language:Swift 88.7%Language:Java 11.2%Language:Shell 0.1%