Skip to content

Latest commit

 

History

History

S

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Algorithms: S

242 problems · Overview

# Problem Difficulty Languages                LeetCode
100 Same Tree        link
990 Satisfiability of Equality Equations        link
861 Score After Flipping Matrix        link
856 Score of Parentheses        link
87 Scramble String        link
74 Search a 2D Matrix        link
240 Search a 2D Matrix II        link
700 Search in a Binary Search Tree        link
33 Search in Rotated Sorted Array        link
81 Search in Rotated Sorted Array II        link
35 Search Insert Position        link
1268 Search Suggestions System        link
1845 Seat Reservation Manager        link
1796 Second Largest Digit in a String        link
671 Second Minimum Node In a Binary Tree        link
2045 Second Minimum Time to Reach Destination      link
335 Self Crossing        link
728 Self Dividing Numbers        link
1648 Sell Diminishing-Valued Colored Balls        link
2312 Selling Pieces of Wood        link
2717 Semi-Ordered Permutation link
2284 Sender With Largest Word Count        link
1813 Sentence Similarity III      link
2938 Separate Black and White Balls link
2553 Separate the Digits in an Array link
1291 Sequential Digits        link
2102 Sequentially Ordinal Rank Tracker        link
297 Serialize and Deserialize Binary Tree        link
449 Serialize and Deserialize BST        link
757 Set Intersection Size At Least Two        link
73 Set Matrix Zeroes        link
645 Set Mismatch        link
1260 Shift 2D Grid        link
848 Shifting Letters        link
2381 Shifting Letters II    link
638 Shopping Offers        link
820 Short Encoding of Words        link
2904 Shortest and Lexicographically Smallest Beautiful String link
934 Shortest Bridge        link
1092 Shortest Common Supersequence        link
748 Shortest Completing Word        link
2608 Shortest Cycle in a Graph link
821 Shortest Distance to a Character        link
2515 Shortest Distance to Target String in a Circular Array link
2350 Shortest Impossible Sequence of Rolls        link
214 Shortest Palindrome        link
1293 Shortest Path in a Grid with Obstacles Elimination        link
1091 Shortest Path in Binary Matrix        link
864 Shortest Path to Get All Keys        link
847 Shortest Path Visiting All Nodes        link
1129 Shortest Path with Alternating Colors        link
2800 Shortest String That Contains Three Strings link
1574 Shortest Subarray to be Removed to Make Array Sorted        link
862 Shortest Subarray with Sum at Least K        link
581 Shortest Unsorted Continuous Subarray        link
384 Shuffle an Array        link
1528 Shuffle String        link
1470 Shuffle the Array        link
1822 Sign of the Product of an Array          link
839 Similar String Groups        link
2043 Simple Bank System        link
1447 Simplified Fractions        link
71 Simplify Path        link
540 Single Element in a Sorted Array        link
136 Single Number        link
137 Single Number II        link
260 Single Number III          link
1834 Single-Threaded CPU      link
773 Sliding Puzzle        link
2653 Sliding Subarray Beauty link
239 Sliding Window Maximum        link
480 Sliding Window Median        link
1629 Slowest Key        link
2413 Smallest Even Multiple link
483 Smallest Good Base    link
2057 Smallest Index With Equal Value        link
1015 Smallest Integer Divisible by K        link
2030 Smallest K-Length Subsequence With Occurrences of a Letter    link
2003 Smallest Missing Genetic Value in Each Subtree        link
2996 Smallest Missing Integer Greater Than Sequential Prefix Sum link
2598 Smallest Missing Non-negative Integer After Operations    link
2336 Smallest Number in Infinite Set        link
632 Smallest Range Covering Elements from K Lists        link
908 Smallest Range I        link
910 Smallest Range II      link
798 Smallest Rotation with Highest Score      link
988 Smallest String Starting From Leaf        link
1663 Smallest String With A Given Numeric Value        link
1202 Smallest String With Swaps        link
2411 Smallest Subarrays With Maximum Bitwise OR link
1081 Smallest Subsequence of Distinct Characters        link
865 Smallest Subtree with all the Deepest Nodes          link
1125 Smallest Sufficient Team        link
2507 Smallest Value After Replacing With Sum of Prime Factors link
2165 Smallest Value of the Rearranged Number        link
909 Snakes and Ladders        link
1146 Snapshot Array        link
640 Solve the Equation        link
2140 Solving Questions With Brainpower    link
912 Sort an Array        link
1636 Sort Array by Increasing Frequency      link
905 Sort Array By Parity          link
922 Sort Array By Parity II        link
451 Sort Characters By Frequency        link
75 Sort Colors        link
2164 Sort Even and Odd Indices Independently        link
1356 Sort Integers by The Number of 1 Bits        link
1387 Sort Integers by The Power Value        link
1203 Sort Items by Groups Respecting Dependencies        link
148 Sort List        link
2191 Sort the Jumbled Numbers    link
1329 Sort the Matrix Diagonally          link
2418 Sort the People link
2545 Sort the Students by Their Kth Score    link
2785 Sort Vowels in a String    link
1859 Sorting the Sentence        link
2826 Sorting Three Groups      link
808 Soup Servings      link
1608 Special Array With X Elements Greater Than or Equal X        link
761 Special Binary String      link
2741 Special Permutations link
1582 Special Positions in a Binary Matrix          link
54 Spiral Matrix        link
59 Spiral Matrix II        link
885 Spiral Matrix III      link
2326 Spiral Matrix IV        link
1221 Split a String in Balanced Strings        link
1593 Split a String Into the Max Number of Unique Substrings          link
659 Split Array into Consecutive Subsequences        link
842 Split Array into Fibonacci Sequence      link
2871 Split Array Into Maximum Number of Subarrays link
410 Split Array Largest Sum        link
805 Split Array With Same Average      link
725 Split Linked List in Parts        link
2468 Split Message Based on Limit link
2788 Split Strings by Separator link
3046 Split the Array link
2584 Split the Array to Make Coprime Products link
1616 Split Two Strings to Make Palindrome        link
2578 Split With Minimum Sum link
1849 Splitting a String Into Descending Consecutive Values        link
69 Sqrt(x)        link
977 Squares of a Sorted Array          link
2132 Stamping the Grid      link
936 Stamping The Sequence        link
1093 Statistics from a Large Sample        link
2096 Step-By-Step Directions From a Binary Tree Node to Another        link
2289 Steps to Make Array Non-decreasing        link
691 Stickers to Spell Word        link
2034 Stock Price Fluctuation        link
877 Stone Game        link
1140 Stone Game II          link
1406 Stone Game III        link
1510 Stone Game IV        link
2029 Stone Game IX      link
1563 Stone Game V        link
1686 Stone Game VI        link
1690 Stone Game VII    link
1872 Stone Game VIII      link
664 Strange Printer        link
1591 Strange Printer II      link
1032 Stream of Characters        link
2396 Strictly Palindromic Number link
443 String Compression        link
1531 String Compression II        link
1408 String Matching in an Array        link
8 String to Integer (atoi)        link
2851 String Transformation link
984 String Without AAA or BBB        link
420 Strong Password Checker        link
2299 Strong Password Checker II          link
551 Student Attendance Record I        link
552 Student Attendance Record II        link
713 Subarray Product Less Than K        link
560 Subarray Sum Equals K        link
974 Subarray Sums Divisible by K        link
2334 Subarray With Elements Greater Than Varying Threshold        link
2913 Subarrays Distinct Element Sum of Squares I link
2916 Subarrays Distinct Element Sum of Squares II link
992 Subarrays with K Different Integers      link
811 Subdomain Visit Count        link
1476 Subrectangle Queries        link
2565 Subsequence With the Minimum Score      link
78 Subsets        link
90 Subsets II        link
30 Substring with Concatenation of All Words        link
2272 Substring With Largest Variance          link
2564 Substring XOR Queries link
1876 Substrings of Size Three with Distinct Characters      link
1281 Subtract the Product and Sum of Digits of an Integer        link
572 Subtree of Another Tree      link
2300 Successful Pairs of Spells and Potions        link
37 Sudoku Solver        link
1927 Sum Game        link
2679 Sum in a Matrix link
2652 Sum Multiples link
1685 Sum of Absolute Differences in a Sorted Array        link
1588 Sum of All Odd Length Subarrays        link
1863 Sum of All Subset XOR Totals        link
2012 Sum of Beauty in the Array          link
1781 Sum of Beauty of All Substrings        link
1837 Sum of Digits in Base K        link
1945 Sum of Digits of String After Convert        link
2615 Sum of Distances      link
834 Sum of Distances in Tree        link
985 Sum of Even Numbers After Queries        link
1862 Sum of Floored Pairs      link
2763 Sum of Imbalance Numbers of All Subarrays link
2081 Sum of k-Mirror Numbers      link
404 Sum of Left Leaves        link
2718 Sum of Matrix After Queries link
1300 Sum of Mutated Array Closest to Target        link
1315 Sum of Nodes with Even-Valued Grandparent        link
2443 Sum of Number and Its Reverse link
2310 Sum of Numbers With Units Digit K        link
2416 Sum of Prefix Scores of Strings link
1022 Sum of Root To Leaf Binary Numbers        link
2223 Sum of Scores of Built Strings      link
633 Sum of Square Numbers        link
2778 Sum of Squares of Special Elements link
907 Sum of Subarray Minimums        link
2104 Sum of Subarray Ranges        link
891 Sum of Subsequence Widths        link
2281 Sum of Total Strength of Wizards        link
371 Sum of Two Integers        link
1748 Sum of Unique Elements        link
2859 Sum of Values at Indices With K Set Bits link
129 Sum Root to Leaf Numbers        link
228 Summary Ranges      link
887 Super Egg Drop      link
906 Super Palindromes        link
372 Super Pow        link
313 Super Ugly Number        link
517 Super Washing Machines          link
892 Surface Area of 3D Shapes        link
130 Surrounded Regions        link
777 Swap Adjacent in LR String        link
1156 Swap For Longest Repeated Character Substring        link
24 Swap Nodes in Pairs          link
1721 Swapping Nodes in a Linked List        link
778 Swim in Rising Water        link
101 Symmetric Tree        link