Skip to content

Latest commit

 

History

History
440 lines (440 loc) · 178 KB

File metadata and controls

440 lines (440 loc) · 178 KB
# Title Solution Difficulty & ReadMe
1002 Find Common Characters Python Easy
1003 Check If Word Is Valid After Substitutions Python Medium
1004 Max Consecutive Ones III Python Medium
1006 Clumsy Factorial Python Medium
1007 Minimum Domino Rotations For Equal Row Python Medium
1008 Construct Binary Search Tree from Preorder Traversal Python Medium
1009 Complement of Base 10 Integer Python Easy
1010 Pairs of Songs With Total Durations Divisible by 60 Python Medium
1011 Capacity To Ship Packages Within D Days Python Medium
1014 Best Sightseeing Pair Python Medium
1015 Smallest Integer Divisible by K Python Medium
1018 Binary Prefix Divisible By 5 Python Easy
1019 Next Greater Node In Linked List Python Medium
1023 Camelcase Matching Python Medium
1026 Maximum Difference Between Node and Ancestor Python Medium
1028 Recover a Tree From Preorder Traversal Python Hard
1029 Two City Scheduling Python Medium
1033 Moving Stones Until Consecutive Python Medium
1038 Binary Search Tree to Greater Sum Tree Python Medium
1039 Minimum Score Triangulation of Polygon Python Medium
1041 Robot Bounded In Circle Python Medium
1043 Partition Array for Maximum Sum Python Medium
1046 Last Stone Weight Python Easy
1047 Remove All Adjacent Duplicates in String Python Easy
1048 Longest String Chain Python Medium
1051 Height Checker Python Easy
1052 Grumpy Bookstore Owner Python Medium
1055 Shortest Way to Form String Python Medium
1057 Campus Bikes Python Medium
1060 Missing Element in Sorted Array Python Medium
1061 Lexicographically Smallest Equivalent String Python Medium
1062 Longest Repeating Substring Python Medium
1063 Number of Valid Subarrays Python Hard
1065 Index Pairs of a String Python Easy
1066 Campus Bikes II Python Medium
1068 Product Sales Analysis I SQL Easy
1071 Greatest Common Divisor of Strings Python Easy
1072 Flip Columns For Maximum Number of Equal Rows Python Medium
1074 Number of Submatrices That Sum to Target Python Hard
1075 Project Employees I SQL Easy
1079 Letter Tile Possibilities Python Medium
1081 Smallest Subsequence of Distinct Characters Python Medium
1086 High Five Python Easy
1087 Brace Expansion Python Medium
1090 Largest Values From Labels Python Medium
1091 Shortest Path in Binary Matrix Python Medium
1092 Shortest Common Supersequence Python Hard
1093 Statistics from a Large Sample Python Medium
1094 Car Pooling Python Medium
1095 Find in Mountain Array Python Hard
1097 Stream of Characters Python Hard
1099 Two Sum Less Than K Python Easy
1100 Find K-Length Substrings With No Repeated Characters Python Medium
1101 The Earliest Moment When Everyone Become Friends Python Medium
1104 Path In Zigzag Labelled Binary Tree Python Medium
1105 Filling Bookcase Shelves Python Medium
1106 Parsing A Boolean Expression Python Hard
1109 Corporate Flight Bookings Python Medium
1110 Delete Nodes And Return Forest Python Medium
1119 Remove Vowels from a String Python Easy
1120 Maximum Average Subtree Python Medium
1121 Divide Array Into Increasing Sequences Python Hard
1122 Relative Sort Array Python Easy
1123 Lowest Common Ancestor of Deepest Leaves Python Medium
1128 Number of Equivalent Domino Pairs Python Easy
1133 Largest Unique Number Python Easy
1135 Connecting Cities With Minimum Cost Python Medium
1136 Parallel Courses Python Hard
1137 N-th Tribonacci Number Python Easy
1138 Alphabet Board Path Python Medium
1140 Stone Game II Python Medium
1143 Longest Common Subsequence Python Medium
1144 Decrease Elements To Make Array Zigzag Python Medium
1146 Snapshot Array Python Medium
1148 Article Views I SQL Easy
1150 Check If a Number Is Majority Element in a Sorted Array Python Easy
1151 Minimum Swaps to Group All 1's Together Python Medium
1152 Analyze User Website Visit Pattern Python Medium
1155 Number of Dice Rolls With Target Sum Python Medium
1160 Find Words That Can Be Formed by Characters Python Easy
1161 Maximum Level Sum of a Binary Tree Python Medium
1165 Single Row Keyboard Python Easy
1166 Design File System Python Medium
1167 Minimum Cost to Connect Sticks Python Medium
1168 Optimize Water Distribution in a Village Python Hard
1170 Compare Strings by Frequency of the Smallest Character Python Medium
1171 Remove Zero Sum Consecutive Nodes from Linked List Python Medium
1176 Diet Plan Performance Python Easy
1181 Before and After Puzzle Python Medium
1182 Shortest Distance to Target Color Python Medium
1183 Maximum Number of Ones Python Hard
1190 Reverse Substrings Between Each Pair of Parentheses Python Medium
1192 Critical Connections in a Network Python Hard
1197 Minimum Knight Moves Python Medium
1198 Find Smallest Common Element in All Rows Python Medium
1199 Minimum Time to Build Blocks Python Hard
1200 Minimum Absolute Difference Python Easy
1202 Smallest String With Swaps Python Medium
1203 Sort Items by Groups Respecting Dependencies Python Hard
1207 Unique Number of Occurrences Python Easy
1208 Get Equal Substrings Within Budget Python Medium
1209 Remove All Adjacent Duplicates in String II Python Medium
1214 Two Sum BSTs Python Medium
1216 Valid Palindrome III Python Hard
1219 Path with Maximum Gold Python Medium
1220 Count Vowels Permutation Python Hard
1222 Queens That Can Attack the King Python Medium
1230 Toss Strange Coins Python Medium
1233 Remove Sub-Folders from the Filesystem Python Medium
1235 Maximum Profit in Job Scheduling Python Hard
1239 Maximum Length of a Concatenated String with Unique Characters Python Medium
1244 Design A Leaderboard Python Medium
1245 Tree Diameter Python Medium
1248 Count Number of Nice Subarrays Python Medium
1249 Minimum Remove to Make Valid Parentheses Python Medium
1251 Average Selling Price SQL Easy
1253 Reconstruct a 2-Row Binary Matrix Python Medium
1254 Number of Closed Islands Python Medium
1255 Maximum Score Words Formed by Letters Python Hard
1256 Encode Number Python Medium
1257 Smallest Common Region Python Medium
1261 Find Elements in a Contaminated Binary Tree Python Medium
1262 Greatest Sum Divisible by Three Python Medium
1265 Print Immutable Linked List in Reverse C++ Medium
1266 Minimum Time Visiting All Points Python Easy
1267 Count Servers that Communicate Python Medium
1268 Search Suggestions System Python Medium
1269 Number of Ways to Stay in the Same Place After Some Steps Python Hard
1272 Remove Interval Python Medium
1276 Number of Burgers with No Waste of Ingredients Python Medium
1277 Count Square Submatrices with All Ones Python Medium
1280 Students and Examinations SQL Easy
1282 Group the People Given the Group Size They Belong To Python Medium
1283 Find the Smallest Divisor Given a Threshold Python Medium
1287 Element Appearing More Than 25% In Sorted Array Python Easy
1288 Remove Covered Intervals Python Medium
1289 Minimum Falling Path Sum II Python Hard
1290 Convert Binary Number in a Linked List to Integer Python Easy
1291 Sequential Digits Python Medium
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold Python Medium
1295 Find Numbers With Even Number of Digits Python Easy
1296 Divide Array in Sets of K Consecutive Numbers Python Medium
1298 Maximum Candies You Can Get from Boxes Python Hard
1300 Sum of Mutated Array Closest to Target Python Medium
1302 Deepest Leaves Sum Python Medium
1304 Find N Unique Integers Sum up to Zero Python Easy
1305 All Elements in Two Binary Search Trees Python Medium
1306 Jump Game III Python Medium
1310 XOR Queries of a Subarray Python Medium
1314 Matrix Block Sum Python Medium
1315 Sum of Nodes With Even-Valued Grandparent Python Medium
1317 Convert Integer to the Sum of Two No-Zero Integers Python Easy
1318 Minimum Flips to Make A or B Equal to C Python Medium
1323 Maximum 69 Number Python Easy
1324 Print Words Vertically Python Medium
1325 Delete Leaves With a Given Value Python Medium
1326 Minimum Number of Taps to Open to Water a Garden Python Hard
1328 Break a Palindrome Python Medium
1329 Sort the Matrix Diagonally Python Medium
1331 Rank Transform of an Array Python Easy
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Python Medium
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Python Medium
1335 Minimum Difficulty of a Job Schedule Python Hard
1337 The K Weakest Rows in a Matrix Python Easy
1338 Reduce Array Size to The Half Python Medium
1339 Maximum Product of Splitted Binary Tree Python Medium
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Python Medium
1344 Angle Between Hands of a Clock Python Medium
1346 Check If N and Its Double Exist Python Easy
1347 Minimum Number of Steps to Make Two Strings Anagram Python Medium
1351 Count Negative Numbers in a Sorted Matrix Python Easy
1352 Product of the Last K Numbers Python Medium
1353 Maximum Number of Events That Can Be Attended Python Medium
1356 Sort Integers by The Number of 1 Bits Python Easy
1357 Apply Discount Every N Orders Python Medium
1358 Number of Substrings Containing All Three Characters Python Medium
1359 Count All Valid Pickup and Delivery Options Python Hard
1360 Number of Days Between Two Dates Python Easy
1361 Validate Binary Tree Nodes Python Medium
1362 Closest Divisors Python Medium
1365 How Many Numbers Are Smaller Than the Current Number Python Medium
1366 Rank Teams by Votes Python Medium
1367 Linked List in Binary Tree Python Medium
1368 Minimum Cost to Make at Least One Valid Path in a Grid Python Hard
1371 Find the Longest Substring Containing Vowels in Even Counts Python Medium
1372 Longest ZigZag Path in a Binary Tree Python Medium
1375 Number of Times Binary String Is Prefix-Aligned Python Medium
1376 Time Needed to Inform All Employees Python Medium
1378 Replace Employee ID With The Unique Identifier SQL Easy
1380 Lucky Numbers in a Matrix Python Easy
1381 Design a Stack With Increment Operation Python Medium
1382 Balance a Binary Search Tree Python Medium
1385 Find the Distance Value Between Two Arrays Python Easy
1387 Sort Integers by The Power Value Python Medium
1390 Four Divisors Python Medium
1394 Find Lucky Integer in an Array Python Easy
1395 Count Number of Teams Python Medium
1396 Design Underground System Python Medium
1399 Count Largest Group Python Easy
1400 Construct K Palindrome Strings Python Medium
1404 Number of Steps to Reduce a Number in Binary Representation to One Python Medium
1405 Longest Happy String Python Medium
1408 String Matching in an Array Python Easy
1409 Queries on a Permutation With Key Python Medium
1410 HTML Entity Parser Python Medium
1411 Number of Ways to Paint N × 3 Grid Python Hard
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Python Medium
1415 The K-th Lexicographical String of All Happy Strings of Length N Python Medium
1418 Display Table of Food Orders in a Restaurant Python Medium
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons Python Hard
1422 Maximum Score After Splitting a String Python Easy
1423 Maximum Points You Can Obtain from Cards Python Medium
1424 Diagonal Traverse II Python Medium
1425 Constrained Subsequence Sum Python Hard
1427 Perform String Shifts Python Easy
1428 Leftmost Column with at Least a One Python Medium
1429 First Unique Number Python Medium
1431 Kids With the Greatest Number of Candies Python Easy
1432 Max Difference You Can Get From Changing an Integer Python Medium
1433 Check If a String Can Break Another String Python Medium
1436 Destination City Python Easy
1437 Check If All 1's Are at Least Length K Places Away Python Easy
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Python Medium
1441 Build an Array With Stack Operations Python Easy
1442 Count Triplets That Can Form Two Arrays of Equal XOR Python Medium
1447 Simplified Fractions Python Medium
1448 Count Good Nodes in Binary Tree Python Medium
1451 Rearrange Words in a Sentence Python Medium
1452 People Whose List of Favorite Companies Is Not a Subset of Another List Python Medium
1455 Check If a Word Occurs as a Prefix of Any Word in a Sentence Python Easy
1456 Maximum Number of Vowels in a Substring of Given Length Python Medium
1457 Pseudo-Palindromic Paths in a Binary Tree Python Medium
1458 Max Dot Product of Two Subsequences Python Hard
1460 Make Two Arrays Equal by Reversing Subarrays Python Easy
1461 Check if a String Contains All Binary Codes of Size K Python Medium
1462 Course Schedule IV Python Medium
1463 Cherry Pickup II Python Hard
1464 Maximum Product of Two Elements in an Array Python Easy
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Python Medium
1466 Reorder Routes to Make All Paths Lead to the City Zero Python Medium
1469 Find All The Lonely Nodes Python Easy
1470 Shuffle the Array Python Easy
1471 The K Strongest Values in an Array Python Medium
1472 Design Browser History Python Medium
1475 Final Prices With a Special Discount in a Shop Python Easy
1476 Subrectangle Queries Python Medium
1481 Least Number of Unique Integers after K Removals Python Medium
1482 Minimum Number of Days to Make m Bouquets Python Medium
1488 Avoid Flood in The City Python Medium
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Python Hard
1492 The Kth Factor of N Python Medium
1493 Longest Subarray of 1's After Deleting One Element Python Medium
1496 Path Crossing Python Easy
1497 Check If Array Pairs Are Divisible by k Python Medium
1508 Range Sum of Sorted Subarray Sums Python Medium
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Python Medium
1512 Number of Good Pairs Python Easy
1513 Number of Substrings With Only 1s Python Medium
1514 Path with Maximum Probability Python Medium
1518 Water Bottles Python Easy
1523 Count Odd Numbers in an Interval Range Python Easy
1524 Number of Sub-arrays With Odd Sum Python Medium
1525 Number of Good Ways to Split a String Python Medium
1526 Minimum Number of Increments on Subarrays to Form a Target Array Python Hard
1529 Minimum Suffix Flips Python Medium
1530 Number of Good Leaf Nodes Pairs Python Medium
1531 String Compression II Python Hard
1534 Count Good Triplets Python Easy
1535 Find the Winner of an Array Game Python Medium
1539 Kth Missing Positive Number Python Easy
1544 Make The String Great Python Easy
1545 Find Kth Bit in Nth Binary String Python Medium
1550 Three Consecutive Odds Python Medium
1551 Minimum Operations to Make Array Equal Python Medium
1552 Magnetic Force Between Two Balls Python Medium
1557 Minimum Number of Vertices to Reach All Nodes Python Medium
1561 Maximum Number of Coins You Can Get Python Medium
1568 Minimum Number of Days to Disconnect Island Python Hard
1570 Dot Product of Two Sparse Vectors Python Medium
1574 Shortest Subarray to be Removed to Make Array Sorted Python Medium
1578 Minimum Deletion Cost to Avoid Repeating Letters Python Medium
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Python Hard
1580 Put Boxes Into the Warehouse II Python Medium
1581 Customer Who Visited but Did Not Make Any Transactions SQL Easy
1582 Special Positions in a Binary Matrix Python Easy
1584 Min Cost to Connect All Points Python Medium
1590 Make Sum Divisible by P Python Medium
1593 Split a String Into the Max Number of Unique Substrings Python Medium
1598 Crawler Log Folder Python Easy
1605 Find Valid Matrix Given Row and Column Sums Python Medium
1608 Special Array With X Elements Greater Than or Equal X Python Easy
1609 Even Odd Tree Python Medium
1611 Minimum One Bit Operations to Make Integers Zero Python Hard
1614 Maximum Nesting Depth of the Parentheses Python Easy
1615 Maximal Network Rank Python Medium
1625 Lexicographically Smallest String After Applying Operations Python Medium
1630 Arithmetic Subarrays Python Medium
1631 Path With Minimum Effort Python Medium
1633 Percentage of Users Attended a Contest SQL Easy
1634 Add Two Polynomials Represented as Linked Lists Python Medium
1636 Sort Array by Increasing Frequency Python Easy
1637 Widest Vertical Area Between Two Points Containing No Points Python Medium
1639 Number of Ways to Form a Target String Given a Dictionary Python Hard
1641 Count Sorted Vowel Strings Python Medium
1642 Furthest Building You Can Reach Python Medium
1644 Lowest Common Ancestor of a Binary Tree II Python Medium
1647 Minimum Deletions to Make Character Frequencies Unique Python Medium
1650 Lowest Common Ancestor of a Binary Tree III Python Medium
1652 Defuse the Bomb Python Easy
1653 Minimum Deletions to Make String Balanced Python Medium
1657 Determine if Two Strings Are Close Python Medium
1658 Minimum Operations to Reduce X to Zero Python Medium
1660 Correct a Binary Tree Python Medium
1661 Average Time of Process per Machine SQL Easy
1662 Check If Two String Arrays are Equivalent Python Easy
1663 Smallest String With a Given Numeric Value Python Medium
1669 Merge In Between Linked Lists Python Medium
1671 Minimum Number of Removals to Make Mountain Array Python Hard
1679 Max Number of K-Sum Pairs Python Medium
1683 Invalid Tweets SQL Easy
1684 Count the Number of Consistent Strings Python Easy
1685 Sum of Absolute Differences in a Sorted Array Python Medium
1688 Count of Matches in Tournament Python Easy
1689 Partitioning Into Minimum Number of Deci-Binary Numbers Python Medium
1695 Maximum Erasure Value Python Medium
1700 Number of Students Unable to Eat Lunch Python Easy
1701 Average Waiting Time Python Medium
1704 Determine if String Halves Are Alike Python Easy
1706 Where Will the Ball Fall Python Medium
1716 Calculate Money in Leetcode Bank Python Easy
1717 Maximum Score From Removing Substrings Python Medium
1718 Construct the Lexicographically Largest Valid Sequence Python Medium
1721 Swapping Nodes in a Linked List Python Medium
1726 Tuple with Same Product Python Medium
1727 Largest Submatrix With Rearrangements Python Medium
1730 Shortest Path to Get Food Python Medium
1732 Find the Highest Altitude Python Easy
1733 Minimum Number of People to Teach Python Medium
1740 Find Distance in a Binary Tree Python Medium
1743 Restore the Array From Adjacent Pairs Python Medium
1746 Maximum Subarray Sum After One Operation Python Medium
1749 Maximum Absolute Sum of Any Subarray Python Medium
1750 Minimum Length of String After Deleting Similar Ends Python Medium
1752 Check if Array Is Sorted and Rotated Python Easy
1753 Maximum Score From Removing Stones Python Medium
1756 Design Most Recently Used Queue Python Medium
1757 Recyclable and Low Fat Products SQL Medium
1758 Minimum Changes To Make Alternating Binary String Python Easy
1759 Count Number of Homogenous Substrings Python Medium
1760 Minimum Limit of Balls in a Bag Python Medium
1762 Buildings With an Ocean View Python Medium
1765 Map of Highest Peak Python Medium
1768 Merge Strings Alternately Python Easy
1769 Minimum Number of Operations to Move All Balls to Each Box Python Medium
1770 Maximum Score from Performing Multiplication Operations Python Hard
1780 Check if Number is a Sum of Powers of Three Python Medium
1785 Minimum Elements to Add to Form a Given Sum Python Medium
1790 Check if One String Swap Can Make Strings Equal Python Easy
1791 Find Center of Star Graph Python Easy
1792 Maximum Average Pass Ratio Python Medium
1793 Maximum Score of a Good Subarray Python Hard
1797 Design Authentication Manager Python Medium
1800 Maximum Ascending Subarray Sum Python Easy
1802 Maximum Value at a Given Index in a Bounded Array Python Medium
1804 Implement Trie II (Prefix Tree) Python Medium
1806 Minimum Number of Operations to Reinitialize a Permutation Python Medium
1807 Evaluate the Bracket Pairs of a String Python Medium
1813 Sentence Similarity III Python Medium
1814 Count Nice Pairs in an Array Python Medium
1817 Finding the Users Active Minutes Python Medium
1828 Queries on Number of Points Inside a Circle Python Medium
1829 Maximum XOR for Each Query Python Medium
1833 Maximum Ice Cream Bars Python Medium
1834 Single-Threaded CPU Python Medium
1836 Remove Duplicates from an Unsorted Linked List Python Medium
1838 Frequency of the Most Frequent Element Python Medium
1842 Next Palindrome Using Same Digits Python Hard
1845 Seat Reservation Manager Python Medium
1846 Maximum Element After Decreasing and Rearranging Python Medium
1851 Minimum Interval to Include Each Query Python Hard
1855 Maximum Distance Between a Pair of Values Python Medium
1857 Largest Color Value in a Directed Graph Python Hard
1858 Longest Word With All Prefixes Python Medium
1861 Rotating the Box Python Medium
1863 Sum of All Subset XOR Totals Python Easy
1865 Finding Pairs With a Certain Sum Python Medium
1870 Minimum Speed to Arrive on Time Python Medium
1874 Minimize Product Sum of Two Arrays Python Medium
1877 Minimize Maximum Pair Sum in Array Python Medium
1881 Maximum Value After Insertion Python Medium
1885 Count Pairs in Two Arrays Python Medium
1887 Reduction Operations to Make the Array Elements Equal Python Medium
1888 Minimum Number of Flips to Make the Binary String Alternating Python Medium
1891 Cutting Ribbons Python Medium
1894 Find the Student That Will Replace the Chalk Python Medium
1895 Largest Magic Square Python Medium
1897 Redistribute Characters to Make All Strings Equal Python Easy
1898 Maximum Number of Removable Characters Python Medium
1899 Merge Triplets to Form Target Triplet Python Medium
1900 The Earliest and Latest Rounds Where Players Compete Python Hard
1903 Largest Odd Number in String Python Easy
1904 The Number of Full Rounds You Have Played Python Medium
1905 Count Sub Islands Python Medium
1910 Remove All Occurrences of a Substring Python Medium
1912 Design Movie Rental System Python Hard
1913 Maximum Product Difference Between Two Pairs Python Easy
1915 Number of Wonderful Substrings Python Medium
1920 Build Array from Permutation Python, C++ Easy
1921 Eliminate Maximum Number of Monsters Python Medium
1922 Count Good Numbers Python Medium
1925 Count Square Sum Triples Python Easy
1926 Nearest Exit from Entrance in Maze Python Medium
1929 Concatenation of Array Python Easy
1930 Unique Length-3 Palindromic Subsequences Python Medium
1931 Painting a Grid With Three Different Colors Python Hard
1934 Confirmation Rate SQL Medium
1935 Maximum Number of Words You Can Type Python Easy
1936 Add Minimum Number of Rungs Python Medium
1937 Maximum Number of Points with Cost Python Medium
1940 Longest Common Subsequence Between Sorted Arrays Python Medium
1942 The Number of the Smallest Unoccupied Chair Python Medium
1945 Sum of Digits of String After Convert Python Easy
1946 Largest Number After Mutating Substring Python Medium
1948 Delete Duplicate Folders in System Python Hard
1957 Delete Characters to Make Fancy String Python Easy
1962 Remove Stones to Minimize the Total Python Medium
1963 Minimum Number of Swaps to Make the String Balanced Python Medium
1968 Array With Elements Not Equal to Average of Neighbors Python Medium
1970 Last Day Where You Can Still Cross Python Hard
1971 Find if Path Exists in Graph Python Easy
1973 Count Nodes Equal to Sum of Descendants Python Medium
1975 Maximum Matrix Sum Python Medium
1976 Number of Ways to Arrive at Destination Python Medium
1980 Find Unique Binary String Python Medium
1984 Minimum Difference Between Highest and Lowest of K Scores Python Easy
1985 Find the Kth Largest Integer in the Array Python Medium
1992 Find All Groups of Farmland Python Medium
2000 Reverse Prefix of Word Python Easy