Algorithms-solutions Problem name Difficulty Languages LeetCode Next Permutation link N-Queens link N-Queens II link Number of 1 Bits link Number of Islands link Number of Digit One link Nim Game link Nth Digit link N-ary Tree Level Order Traversal link Number of Segments in a String link Non-overlapping Intervals link Number of Boomerangs link Number Complement link Next Greater Element I link Next Greater Element II link Number of Provinces link Next Greater Element III link N-ary Tree Preorder Traversal link N-ary Tree Postorder Traversal link Non-negative Integers without Consecutive Ones link Non-decreasing Array link Number of Longest Increasing Subsequence link Number of Atoms link Network Delay Time link Number of Matching Subsequences link Number of Subarrays with Bounded Maximum link Number of Lines To Write String link New 21 Game link Nth Magical Number link Numbers At Most N Given Digit Set link Number of Music Playlists link Number of Recent Calls link N-Repeated Element in Size 2N Array link Numbers With Same Consecutive Differences link Number of Squareful Arrays link Numbers With Repeated Digits link Next Greater Node In Linked List link Number of Enclaves link Number of Submatrices That Sum to Target link Number of Equivalent Domino Pairs link N-th Tribonacci Number link Number of Dice Rolls With Target Sum link Number of Valid Words for Each Puzzle link Number of Closed Islands link Number of Ways to Stay in the Same Place After Some Steps link Number of Burgers with No Waste of Ingredients link Number of Paths with Max Score link Number of Operations to Make Network Connected link Number of Steps to Reduce a Number to Zero link Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold link Number of Substrings Containing All Three Characters link Number of Days Between Two Dates link Number of Times Binary String Is Prefix-Aligned link Number of Steps to Reduce a Number in Binary Representation to One link Number of Ways to Paint N × 3 Grid link Number of Ways to Wear Different Hats to Each Other link Number of Ways of Cutting a Pizza link Number of Students Doing Homework at a Given Time link Number of Subsequences That Satisfy the Given Sum Condition link Number of Good Pairs link Number of Substrings With Only 1s link Number of Nodes in the Sub-Tree With the Same Label link Number of Sub-arrays With Odd Sum link Number of Good Ways to Split a String link Number of Good Leaf Nodes Pairs link Number of Ways to Reorder Array to Get Same BST link Number of Ways to Split a String link Number of Ways Where Square of Number Is Equal to Product of Two Numbers link Number of Sets of K Non-Overlapping Line Segments link Number of Ways to Form a Target String Given a Dictionary link Number of Students Unable to Eat Lunch link Number Of Ways To Reconstruct A Tree link Number Of Rectangles That Can Form The Largest Square link Number of Restricted Paths From First to Last Node link Number of Orders in the Backlog link Number of Different Integers in a String link Number of Different Subsequences GCDs link Number of Ways to Rearrange Sticks With K Sticks Visible link Number of Wonderful Substrings link Nearest Exit from Entrance in Maze link Number of Visible People in a Queue link Number of Strings That Appear as Substrings in Word link Number of Ways to Arrive at Destination link Number of Ways to Separate Numbers link Number of Unique Good Subsequences link Number of Pairs of Interchangeable Rectangles link Number of Pairs of Strings With Concatenation Equal to Target link Number of Valid Words in a Sentence link Next Greater Numerically Balanced Number link Number of Valid Move Combinations On Chessboard link Number of Smooth Descent Periods of a Stock link Number of Laser Beams in a Bank link Number of Ways to Divide a Long Corridor link Number of Ways to Select Buildings link Number of Ways to Buy Pens and Pencils link Number of Flowers in Full Bloom link Number of Ways to Split Array link Naming a Company link Number of Distinct Roll Sequences link Number of People Aware of a Secret link Number of Increasing Paths in a Grid link Number of Zero-Filled Subarrays link Number of Excellent Pairs link Number of Arithmetic Triplets link