Algorithms-solutions Problem name Difficulty Languages LeetCode String to Integer (atoi) link Swap Nodes in Pairs link Substring with Concatenation of All Words link Search in Rotated Sorted Array link Search Insert Position link Sudoku Solver link Spiral Matrix link Spiral Matrix II link Sqrt(x) link Simplify Path link Set Matrix Zeroes link Search a 2D Matrix link Sort Colors link Subsets link Search in Rotated Sorted Array II link Scramble String link Subsets II link Same Tree link Symmetric Tree link Sum Root to Leaf Numbers link Surrounded Regions link Single Number link Single Number II link Sort List link Shortest Palindrome link Summary Ranges link Sliding Window Maximum link Search a 2D Matrix II link Single Number III link Serialize and Deserialize Binary Tree link Super Ugly Number link Self Crossing link Sum of Two Integers link Super Pow link Shuffle an Array link Sum of Left Leaves link Split Array Largest Sum link Strong Password Checker link String Compression link Serialize and Deserialize BST link Sort Characters By Frequency link Sliding Window Median link Smallest Good Base link Super Washing Machines link Single Element in a Sorted Array link Student Attendance Record I link Student Attendance Record II link Subarray Sum Equals K link Subtree of Another Tree link Shortest Unsorted Continuous Subarray link Smallest Range Covering Elements from K Lists link Sum of Square Numbers link Shopping Offers link Solve the Equation link Set Mismatch link Split Array into Consecutive Subsequences link Strange Printer link Second Minimum Node In a Binary Tree link Stickers to Spell Word link Search in a Binary Search Tree link Subarray Product Less Than K link Split Linked List in Parts link Self Dividing Numbers link Shortest Completing Word link Set Intersection Size At Least Two link Special Binary String link Sliding Puzzle link Swap Adjacent in LR String link Swim in Rising Water link Smallest Rotation with Highest Score link Split Array With Same Average link Soup Servings link Subdomain Visit Count link Short Encoding of Words link Shortest Distance to a Character link Sum of Distances in Tree link Similar String Groups link Split Array into Fibonacci Sequence link Shortest Path Visiting All Nodes link Shifting Letters link Score of Parentheses link Score After Flipping Matrix link Shortest Subarray with Sum at Least K link Shortest Path to Get All Keys link Smallest Subtree with all the Deepest Nodes link Stone Game link Spiral Matrix III link Super Egg Drop link Sum of Subsequence Widths link Surface Area of 3D Shapes link Sort Array By Parity link Super Palindromes link Sum of Subarray Minimums link Smallest Range I link Snakes and Ladders link Smallest Range II link Sort an Array link Sort Array By Parity II link Shortest Bridge link Subarray Sums Divisible by K link Squares of a Sorted Array link String Without AAA or BBB link Sum of Even Numbers After Queries link Smallest String Starting From Leaf link Satisfiability of Equality Equations link Subarrays with K Different Integers link Smallest Integer Divisible by K link Sum of Root To Leaf Binary Numbers link Stream of Characters link Smallest Subsequence of Distinct Characters link Shortest Path in Binary Matrix link Statistics from a Large Sample link Smallest Sufficient Team link Shortest Path with Alternating Colors link Stone Game II link Snapshot Array link Swap For Longest Repeated Character Substring link Smallest String With Swaps link Sort Items by Groups Respecting Dependencies link Split a String in Balanced Strings link Shift 2D Grid link Search Suggestions System link Subtract the Product and Sum of Digits of an Integer link Sequential Digits link Shortest Path in a Grid with Obstacles Elimination link Sum of Mutated Array Closest to Target link Sum of Nodes with Even-Valued Grandparent link Sort the Matrix Diagonally link Sort Integers by The Number of 1 Bits link Sort Integers by The Power Value link Stone Game III link String Matching in an Array link Simplified Fractions link Shuffle the Array link Subrectangle Queries link Stone Game IV link Shuffle String link String Compression II link Stone Game V link Shortest Subarray to be Removed to Make Array Sorted link Special Positions in a Binary Matrix link Sum of All Odd Length Subarrays link Strange Printer II link Split a String Into the Max Number of Unique Substrings link Special Array With X Elements Greater Than or Equal X link Split Two Strings to Make Palindrome link Slowest Key link Sort Array by Increasing Frequency link Sell Diminishing-Valued Colored Balls link Smallest String With A Given Numeric Value link Sum of Absolute Differences in a Sorted Array link Stone Game VI link Stone Game VII link Swapping Nodes in a Linked List link Sum of Unique Elements link Sum of Beauty of All Substrings link Second Largest Digit in a String link Sentence Similarity III link Sign of the Product of an Array link Single-Threaded CPU link Sum of Digits in Base K link Seat Reservation Manager link Splitting a String Into Descending Consecutive Values link Sorting the Sentence link Sum of Floored Pairs link Sum of All Subset XOR Totals link Stone Game VIII link Substrings of Size Three with Distinct Characters link Sum Game link Sum of Digits of String After Convert link Smallest Missing Genetic Value in Each Subtree link Sum of Beauty in the Array link Stone Game IX link Smallest K-Length Subsequence With Occurrences of a Letter link Simple Bank System link Second Minimum Time to Reach Destination link Smallest Index With Equal Value link Sum of k-Mirror Numbers link Step-By-Step Directions From a Binary Tree Node to Another link Sequentially Ordinal Rank Tracker link Sum of Subarray Ranges link Stamping the Grid link Solving Questions With Brainpower link Sort Even and Odd Indices Independently link Smallest Value of the Rearranged Number link Sort the Jumbled Numbers link Sum of Scores of Built Strings link Substring With Largest Variance link Sum of Total Strength of Wizards link Sender With Largest Word Count link Steps to Make Array Non-decreasing link Strong Password Checker II link Successful Pairs of Spells and Potions link Sum of Numbers With Units Digit K link Selling Pieces of Wood link Spiral Matrix IV link Subarray With Elements Greater Than Varying Threshold link Smallest Number in Infinite Set link Shortest Impossible Sequence of Rolls link