All 583 problems in sheet order, keyed by TUF ID.

IDProblemDifficultySectionSheets
425Input OutputEasyThings to Know in C++/Java/Python or any languageA2Z
1211Cpp BasicsEasyThings to Know in C++/Java/Python or any languageA2Z
424If ElseIfEasyThings to Know in C++/Java/Python or any languageA2Z
429Switch CaseEasyThings to Know in C++/Java/Python or any languageA2Z
2869What are arrays, strings?EasyThings to Know in C++/Java/Python or any languageA2Z
2867For loopsEasyThings to Know in C++/Java/Python or any languageA2Z
2868While loopsEasyThings to Know in C++/Java/Python or any languageA2Z
2866Functions (Pass by Reference and Value)EasyThings to Know in C++/Java/Python or any languageA2Z
1219Theory with examplesEasyThings to Know in C++/Java/Python or any languageA2Z
1216Easy and MediumEasyBuild-up Logical ThinkingA2Z
1205HardEasyBuild-up Logical ThinkingA2Z
401Pattern 1EasyPatternsA2Z
412Pattern 2EasyPatternsA2Z
416Pattern 3EasyPatternsA2Z
417Pattern 4EasyPatternsA2Z
418Pattern 5EasyPatternsA2Z
419Pattern 6EasyPatternsA2Z
420Pattern 7EasyPatternsA2Z
421Pattern 8EasyPatternsA2Z
422Pattern 9EasyPatternsA2Z
402Pattern 10EasyPatternsA2Z
403Pattern 11EasyPatternsA2Z
404Pattern 12EasyPatternsA2Z
405Pattern 13EasyPatternsA2Z
406Pattern 14EasyPatternsA2Z
407Pattern 15EasyPatternsA2Z
408Pattern 16EasyPatternsA2Z
409Pattern 17EasyPatternsA2Z
410Pattern 18EasyPatternsA2Z
411Pattern 19EasyPatternsA2Z
413Pattern 20MediumPatternsA2Z
414Pattern 21MediumPatternsA2Z
415Pattern 22MediumPatternsA2Z
1218STLEasyLearn STL/Java-Collections or similar thing in your | languageA2Z
1217Java CollectionsEasyLearn STL/Java-Collections or similar thing in your | languageA2Z
367Count all Digits of a NumberEasyKnow Basic MathsA2Z
376Reverse a numberEasyKnow Basic MathsA2Z
374Palindrome NumberEasyKnow Basic MathsA2Z B75
372GCD of Two NumbersEasyKnow Basic MathsA2Z
366Check if the Number is ArmstrongEasyKnow Basic MathsA2Z
2807Print all DivisorsEasyKnow Basic MathsA2Z
365Check for Prime NumberEasyKnow Basic MathsA2Z
2401Understand recursion by print something N timesEasyLearn Basic RecursionA2Z
2405Print name N times using recursionEasyLearn Basic RecursionA2Z
850Print 1 to N using RecursionEasyLearn Basic RecursionA2Z
852Print N to 1 using RecursionEasyLearn Basic RecursionA2Z
386Sum of First N NumbersEasyLearn Basic RecursionA2Z
371Factorial of a given numberEasyLearn Basic RecursionA2Z
342Reverse an arrayEasyLearn Basic RecursionA2Z
378Check if String is Palindrome or NotEasyLearn Basic RecursionA2Z
381Fibonacci NumberEasyLearn Basic RecursionA2Z
1203Basic HashingEasyLearn Basic HashingA2Z
252Counting Frequencies of Array ElementsEasyLearn Basic HashingA2Z
344Highest Occurring Element in an ArrayEasyLearn Basic HashingA2Z
947Selection SortEasySorting-IA2Z
943Bubble SortEasySorting-IA2Z
944Insertion SortingEasySorting-IA2Z
945Merge SortingMediumSorting-IIA2Z
881Recursive Bubble SortEasySorting-IIA2Z
882Recursive Insertion SortEasySorting-IIA2Z
946Quick SortingEasySorting-IIA2Z
38Largest ElementEasyEasyA2Z
43Second Largest ElementEasyEasyA2Z
379Check if the Array is Sorted IIEasyEasyA2Z
2764Remove duplicates from Sorted arrayEasyEasyA2Z
40Left Rotate Array by OneEasyEasyA2Z
39Left Rotate Array by K PlacesEasyEasyA2Z
46Move Zeros to EndEasyEasyA2Z
41Linear SearchEasyEasyA2Z
48Union of two sorted arraysEasyEasyA2Z
44Find missing numberEasyEasyA2Z B75
42Maximum Consecutive OnesEasyEasyA2Z SDE
2793Find the number that appears once, and other numbers twice.MediumEasyA2Z
2836Longest subarray with given sum K(positives)MediumEasyA2Z
564Longest subarray with sum KMediumEasyA2Z
37Two SumEasyMediumA2Z SDE B75
2762Sort an array of 0's 1's and 2'sMediumMediumA2Z
22Majority Element-IEasyMediumA2Z SDE
29Kadane's AlgorithmMediumMediumA2Z SDE
2761Print subarray with maximum subarray sum (extended version of above problem)MediumMediumA2Z
2798Stock Buy and SellMediumMediumA2Z SDE
34Rearrange array elements by signMediumMediumA2Z
31Next PermutationMediumMediumA2Z SDE
30Leaders in an ArrayMediumMediumA2Z
2835Longest Consecutive Sequence in an ArrayMediumMediumA2Z
911Set Matrix ZeroesMediumMediumA2Z SDE B75
35Rotate matrix by 90 degreesMediumMediumA2Z SDE B75
33Print the matrix in spiral mannerMediumMediumA2Z B75
561Count subarrays with given sumMediumMediumA2Z
813Pascal's Triangle IEasyHardA2Z SDE
23Majority Element-IIHardHardA2Z SDE
273 SumMediumHardA2Z SDE B75
284 SumMediumHardA2Z SDE
605Largest Subarray with Sum 0MediumHardA2Z
562Count subarrays with given xor KHardHardA2Z SDE
715Merge Overlapping SubintervalsMediumHardA2Z SDE
25Merge two sorted arrays without extra spaceMediumHardA2Z SDE
21Find the repeating and missing numberHardHardA2Z SDE B75
20Count InversionsHardHardA2Z
26Reverse PairsHardHardA2Z SDE
24Maximum Product Subarray in an ArrayHardHardA2Z B75
81Search X in sorted arrayEasyBS on 1D ArraysA2Z
80Lower BoundEasyBS on 1D ArraysA2Z
82Upper BoundEasyBS on 1D ArraysA2Z
89Search insert positionEasyBS on 1D ArraysA2Z
86Floor and Ceil in Sorted ArrayEasyBS on 1D ArraysA2Z
85First and last occurrenceEasyBS on 1D ArraysA2Z
229Count Occurrences in a Sorted ArrayEasyBS on 1D ArraysA2Z
87Search in rotated sorted array-IMediumBS on 1D ArraysA2Z B75
88Search in rotated sorted array-IIMediumBS on 1D ArraysA2Z
83Find minimum in Rotated Sorted ArrayEasyBS on 1D ArraysA2Z B75
84Find out how many times the array is rotatedEasyBS on 1D ArraysA2Z
2770Single element in a Sorted ArrayMediumBS on 1D ArraysA2Z
75Find peak elementMediumBS on 1D ArraysA2Z
92Find square root of a numberMediumBS on AnswersA2Z
91Find Nth root of a numberMediumBS on AnswersA2Z
94Koko eating bananasMediumBS on AnswersA2Z
95Minimum days to make M bouquetsMediumBS on AnswersA2Z
93Find the smallest divisorMediumBS on AnswersA2Z
161Capacity to Ship Packages Within D DaysMediumBS on AnswersA2Z
600Kth Missing Positive NumberMediumBS on AnswersA2Z
73Aggressive CowsHardBS on AnswersA2Z SDE
74Book Allocation ProblemHardBS on AnswersA2Z
79Split array - largest sumHardBS on AnswersA2Z
805Painter's PartitionMediumBS on AnswersA2Z
78Minimize Max Distance to Gas StationHardBS on AnswersA2Z
77Median of 2 sorted arraysHardBS on AnswersA2Z SDE
2767Kth element of 2 sorted arraysMediumBS on AnswersA2Z
66Find row with maximum 1'sEasyBS on 2D ArraysA2Z
69Search in a 2D matrixHardBS on 2D ArraysA2Z SDE
68Search in 2D matrix - IIHardBS on 2D ArraysA2Z
65Find Peak Element - IIMediumBS on 2D ArraysA2Z
67Matrix MedianHardBS on 2D ArraysA2Z SDE
892Remove Outermost ParenthesesMediumBasic and Easy String ProblemsA2Z
2863Reverse words in a given string / Palindrome CheckMediumBasic and Easy String ProblemsA2Z
394Largest Odd Number in a StringEasyBasic and Easy String ProblemsA2Z
395Longest Common PrefixEasyBasic and Easy String ProblemsA2Z SDE
393Isomorphic StringEasyBasic and Easy String ProblemsA2Z
398Rotate StringEasyBasic and Easy String ProblemsA2Z
2809Check if two strings are anagram of each otherEasyBasic and Easy String ProblemsA2Z
399Sort Characters by FrequencyEasyMedium String ProblemsA2Z
674Maximum Nesting Depth of the ParenthesesMediumMedium String ProblemsA2Z
903Roman to IntegerMediumMedium String ProblemsA2Z SDE
974String to Integer (atoi)MediumMedium String ProblemsA2Z
2394Count Number of SubstringsEasyMedium String ProblemsA2Z
638Longest Palindromic SubstringMediumMedium String ProblemsA2Z B75
993Sum of Beauty of All SubstringsMediumMedium String ProblemsA2Z
984Reverse every word in a stringMediumMedium String ProblemsA2Z SDE
1237Introduction to Singly LinkedListEasyLearn 1D LinkedListA2Z
356Insertion at the head of Linked ListEasyLearn 1D LinkedListA2Z
352Deletion of the head of LLEasyLearn 1D LinkedListA2Z
470Find the length of the Linked ListEasyLearn 1D LinkedListA2Z
905Search in Linked ListMediumLearn 1D LinkedListA2Z
1234Introduction to Doubly LLEasyLearn Doubly LinkedListA2Z
361Insert node before head in Doubly Linked ListEasyLearn Doubly LinkedListA2Z
348Delete head of Doubly Linked ListEasyLearn Doubly LinkedListA2Z
900Reverse a Doubly Linked ListMediumLearn Doubly LinkedListA2Z
2810Middle of a LinkedList [TortoiseHare Method]EasyMedium Problems of LLA2Z
2850Reverse a LinkedList [Iterative]MediumMedium Problems of LLA2Z
627Reverse a LLMediumMedium Problems of LLA2Z SDE B75
2845Detect a loop in LLMediumMedium Problems of LLA2Z
2847Find the starting point in LLMediumMedium Problems of LLA2Z
623Length of loop in LLMediumMedium Problems of LLA2Z
2844Check if LL is palindrome or notMediumMedium Problems of LLA2Z
628Segregate odd and even nodes in Linked ListMediumMedium Problems of LLA2Z
2849Remove Nth node from the back of the LLMediumMedium Problems of LLA2Z
619Delete the middle node in LLMediumMedium Problems of LLA2Z
616Sort LLHardMedium Problems of LLA2Z
629Sort a Linked List of 0's 1's and 2'sMediumMedium Problems of LLA2Z
2846Find the intersection point of Y LLMediumMedium Problems of LLA2Z
617Add one to a number represented by LLMediumMedium Problems of LLA2Z
625Add two numbers in Linked ListMediumMedium Problems of LLA2Z
609Delete all occurrences of a key in DLLHardMedium Problems of DLLA2Z
452Find Pairs with Given Sum in Doubly Linked ListMediumMedium Problems of DLLA2Z
610Remove duplicates from sorted DLLHardMedium Problems of DLLA2Z
2842Reverse LL in group of given size KHardHard Problems of LLA2Z
2843Rotate a LLHardHard Problems of LLA2Z
2841Flattening of LLHardHard Problems of LLA2Z
611Clone a LL with random and next pointerHardHard Problems of LLA2Z SDE
2862Recursive Implementation of atoi()MediumGet a Strong HoldA2Z
2855Pow(x, n)EasyGet a Strong HoldA2Z SDE
222Count Good NumbersMediumGet a Strong HoldA2Z
2858Sort a stack using recursionMediumGet a Strong HoldA2Z
901Reverse a StackMediumGet a Strong HoldA2Z
493Generate Binary Strings Without Consecutive 1sMediumSubsequences PatternA2Z
876Generate ParenthesesMediumSubsequences PatternA2Z
878Power SetMediumSubsequences PatternA2Z
2400Learn All Patterns of Subsequences (Theory)EasySubsequences PatternA2Z
880Count all subsequences with sum KEasySubsequences PatternA2Z
879Check if there exists a subsequence with sum KEasySubsequences PatternA2Z
864Combination SumMediumSubsequences PatternA2Z SDE B75
865Combination Sum IIMediumSubsequences PatternA2Z SDE
867Subsets IMediumSubsequences PatternA2Z
868Subsets IIMediumSubsequences PatternA2Z SDE
866Combination Sum IIIMediumSubsequences PatternA2Z
875Letter Combinations of a Phone NumberHardSubsequences PatternA2Z
871Palindrome partitioningHardTrying out all Combos / HardA2Z SDE
874Word SearchHardTrying out all Combos / HardA2Z B75
870N QueenHardTrying out all Combos / HardA2Z SDE
872Rat in a MazeHardTrying out all Combos / HardA2Z SDE
4Word BreakMediumTrying out all Combos / HardA2Z SDE B75
869M Coloring ProblemHardTrying out all Combos / HardA2Z SDE
873Sudoku SolverHardTrying out all Combos / HardA2Z SDE
3Expression Add OperatorsHardTrying out all Combos / HardA2Z
1155Introduction to Bits and TricksEasyLearn Bit ManipulationA2Z
177Check if the i-th bit is Set or NotEasyLearn Bit ManipulationA2Z
171Check if a Number is Odd or NotEasyLearn Bit ManipulationA2Z
172Check if a Number is Power of 2 or NotEasyLearn Bit ManipulationA2Z
243Count the Number of Set BitsEasyLearn Bit ManipulationA2Z
2410Set/Unset the rightmost unset bitEasyLearn Bit ManipulationA2Z
1005Swap Two NumbersEasyLearn Bit ManipulationA2Z
140Divide two numbers without multiplication and divisionMediumLearn Bit ManipulationA2Z
141Minimum Bit Flips to Convert NumberMediumInterview ProblemsA2Z
143Single Number - IMediumInterview ProblemsA2Z
142Power Set Bit ManipulationMediumInterview ProblemsA2Z
146XOR of numbers in a given rangeMediumInterview ProblemsA2Z
145Single Number - IIIMediumInterview ProblemsA2Z
2853Print Prime Factors of a NumberHardAdvanced MathsA2Z
370Divisors of a NumberEasyAdvanced MathsA2Z
651Count primes in range L to RHardAdvanced MathsA2Z
652Prime factorisation of a NumberHardAdvanced MathsA2Z
877Pow(x,n)EasyAdvanced MathsA2Z
390Implement Stack using ArraysEasyLearningA2Z SDE
387Implement Queue using ArraysEasyLearningA2Z SDE
392Implement Stack using QueueEasyLearningA2Z
389Implement Queue using StackEasyLearningA2Z SDE
391Implement stack using LinkedlistEasyLearningA2Z
388Implement queue using LinkedlistEasyLearningA2Z
966Balanced ParanthesisEasyLearningA2Z SDE B75
958Implement Min StackHardLearningA2Z SDE
586Infix to Postfix ConversionMediumPrefix, Infix, PostFix Conversion ProblemsA2Z
848Prefix to Infix ConversionMediumPrefix, Infix, PostFix Conversion ProblemsA2Z
849Prefix to Postfix ConversionMediumPrefix, Infix, PostFix Conversion ProblemsA2Z
825Postfix to Prefix ConversionMediumPrefix, Infix, PostFix Conversion ProblemsA2Z
824Postfix to Infix ConversionEasyPrefix, Infix, PostFix Conversion ProblemsA2Z
587Infix to Prefix ConversionMediumPrefix, Infix, PostFix Conversion ProblemsA2Z
968Next Greater ElementMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z SDE
969Next Greater Element - 2MediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z
768Next Smaller ElementMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z SDE
285Number of Greater Elements to the RightEasyMonotonic Stack/Queue Problems [VVV. Imp]A2Z
965Trapping RainwaterHardMonotonic Stack/Queue Problems [VVV. Imp]A2Z SDE
971Sum of Subarray MinimumsMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z
967Asteroid CollisionMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z
972Sum of Subarray RangesMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z
970Remove K DigitsMediumMonotonic Stack/Queue Problems [VVV. Imp]A2Z
959Largest rectangle in a histogramHardMonotonic Stack/Queue Problems [VVV. Imp]A2Z SDE
962Maximum RectanglesHardMonotonic Stack/Queue Problems [VVV. Imp]A2Z
963Sliding Window MaximumHardImplementation ProblemsA2Z SDE
964Stock span problemHardImplementation ProblemsA2Z SDE
957Celebrity ProblemHardImplementation ProblemsA2Z SDE
961LRU CacheMediumImplementation ProblemsA2Z SDE
960LFU CacheHardImplementation ProblemsA2Z SDE
2857Longest Substring Without Repeating CharactersMediumMedium ProblemsA2Z B75
930Max Consecutive Ones IIIMediumMedium ProblemsA2Z
926Fruit Into BasketsMediumMedium ProblemsA2Z
927Longest Repeating Character ReplacementHardMedium ProblemsA2Z B75
923Binary Subarrays With SumHardMedium ProblemsA2Z
924Count number of Nice subarraysHardMedium ProblemsA2Z
925Number of Substrings Containing All Three CharactersHardMedium ProblemsA2Z
922Maximum Points You Can Obtain from CardsMediumMedium ProblemsA2Z
928Longest Substring With At Most K Distinct CharactersHardHard ProblemsA2Z
988Subarrays with K Different IntegersMediumHard ProblemsA2Z
931Minimum Window SubstringHardHard ProblemsA2Z B75
754Minimum Window SubsequenceHardHard ProblemsA2Z
1223Heaps (Theory Video)EasyLearningA2Z
576Implement Min HeapMediumLearningA2Z
571Check if an array represents a min heapMediumLearningA2Z
572Convert Min Heap to Max HeapMediumLearningA2Z
578K-th Largest element in an arrayMediumMedium ProblemsA2Z SDE
2840Kth smallest element in an array [use priority queue]MediumMedium ProblemsA2Z
2409Sort K sorted arrayEasyMedium ProblemsA2Z
569Merge K sorted ListsHardMedium ProblemsA2Z
898Replace Elements by Their RankEasyMedium ProblemsA2Z
1008Task SchedulerMediumMedium ProblemsA2Z
556Hand of StraightsMediumMedium ProblemsA2Z
565Design TwitterMediumHard ProblemsA2Z
755Minimum Cost to Connect SticksMediumHard ProblemsA2Z
2838Kth largest element in a stream of running integersHardHard ProblemsA2Z
568Maximum Sum CombinationHardHard ProblemsA2Z SDE
566Find Median from Data StreamHardHard ProblemsA2Z SDE B75
1018Top K Frequent ElementsMediumHard ProblemsA2Z SDE B75
2834Assign CookiesEasyEasy ProblemsA2Z
489Fractional KnapsackMediumEasy ProblemsA2Z SDE
543Lemonade ChangeEasyEasy ProblemsA2Z
545Valid Paranthesis CheckerHardEasy ProblemsA2Z
549N meetings in one roomMediumMedium/HardA2Z SDE
542Jump Game - IEasyMedium/HardA2Z B75
595Jump Game IIMediumMedium/HardA2Z
548Minimum number of platforms required for a railwayMediumMedium/HardA2Z SDE
547Job sequencing ProblemMediumMedium/HardA2Z SDE
544CandyHardMedium/HardA2Z
551Shortest Job FirstMediumMedium/HardA2Z
2859Program for Least Recently Used (LRU) Page Replacement AlgorithmMediumMedium/HardA2Z
546Insert IntervalMediumMedium/HardA2Z B75
712Merge IntervalsMediumMedium/HardA2Z B75
550Non-overlapping IntervalsMediumMedium/HardA2Z B75
2865Introduction to TreesEasyTraversalsA2Z
2864Binary Tree Representation in JavaEasyTraversalsA2Z
136Pre, Post, Inorder in one traversalEasyTraversalsA2Z SDE
137Preorder TraversalEasyTraversalsA2Z
2785Inorder Traversal of Binary TreeEasyTraversalsA2Z
135Postorder TraversalEasyTraversalsA2Z SDE
134Level Order TraversalEasyTraversalsA2Z SDE B75
2872Iterative Preorder Traversal of Binary TreeEasyTraversalsA2Z
2786Iterative Inorder Traversal of Binary TreeEasyTraversalsA2Z
2788Post-order Traversal of Binary Tree using 2 stackEasyTraversalsA2Z
2787Post-order Traversal of Binary Tree using 1 stackEasyTraversalsA2Z
2789Preorder, Inorder, and Postorder Traversal in one TraversalEasyTraversalsA2Z
131Maximum Depth in BTMediumMedium ProblemsA2Z SDE B75
127Check for balanced binary treeMediumMedium ProblemsA2Z SDE
130Diameter of Binary TreeEasyMedium ProblemsA2Z SDE
132Maximum path sumMediumMedium ProblemsA2Z SDE B75
129Check if two trees are identical or notMediumMedium ProblemsA2Z SDE B75
126Zig Zag or Spiral TraversalMediumMedium ProblemsA2Z SDE
116Boundary TraversalMediumMedium ProblemsA2Z SDE
125Vertical Order TraversalMediumMedium ProblemsA2Z SDE
124Top View of BTMediumMedium ProblemsA2Z SDE
115Bottom view of BTMediumMedium ProblemsA2Z SDE
2782Right/Left View of Binary TreeMediumMedium ProblemsA2Z
2784Symmetric Binary TreeMediumMedium ProblemsA2Z SDE
122Print root to leaf path in BTMediumHard ProblemsA2Z SDE
118LCA in BTHardHard ProblemsA2Z SDE
119Maximum Width of BTMediumHard ProblemsA2Z SDE
185Children Sum Property in Binary TreeMediumHard ProblemsA2Z SDE
121Print all nodes at a distance of K in BTHardHard ProblemsA2Z
120Minimum time taken to burn the BT from a given NodeHardHard ProblemsA2Z
117Count total nodes in a complete BTEasyHard ProblemsA2Z
111Requirements needed to construct a unique BTMediumHard ProblemsA2Z
110Construct a BT from Preorder and InorderHardHard ProblemsA2Z SDE
2781Construct the Binary Tree from Postorder and Inorder TraversalHardHard ProblemsA2Z B75
112Serialize and De-serialize BTHardHard ProblemsA2Z SDE B75
2791Morris Preorder Traversal of a Binary TreeHardHard ProblemsA2Z
2792Morris Inorder Traversal of a Binary TreeHardHard ProblemsA2Z
486Flatten Binary Tree to Linked ListMediumHard ProblemsA2Z SDE
1153Introduction to BSTEasyConceptsA2Z
2780Search in a Binary Search TreeEasyConceptsA2Z
2398Find Min/Max in BSTEasyConceptsA2Z
107Floor and Ceil in a BSTEasyPractice ProblemsA2Z
2778Floor in a Binary Search TreeEasyPractice ProblemsA2Z
104Insert a given node in BSTMediumPractice ProblemsA2Z
102Delete a node in BSTMediumPractice ProblemsA2Z
105Kth Smallest and Largest element in BSTMediumPractice ProblemsA2Z SDE
100Check if a tree is a BST or notMediumPractice ProblemsA2Z SDE B75
106LCA in BSTMediumPractice ProblemsA2Z SDE B75
101Construct a BST from a preorder traversalMediumPractice ProblemsA2Z SDE
2775Inorder Successor/Predecessor in BSTMediumPractice ProblemsA2Z
2772Merge 2 BST'sHardPractice ProblemsA2Z
2774Two Sum In BST | Check if there exists a pair with Sum KHardPractice ProblemsA2Z
97Correct BST with two nodes swappedHardPractice ProblemsA2Z
98Largest BST in Binary TreeHardPractice ProblemsA2Z
1222Introduction to GraphEasyLearningA2Z
2870Graph Representation | C++EasyLearningA2Z
2871Graph Representation | JavaEasyLearningA2Z
528Connected ComponentsMediumLearningA2Z B75
529Traversal TechniquesMediumLearningA2Z SDE
2831DFSMediumLearningA2Z SDE
535Number of provincesMediumProblems on BFS/DFSA2Z
2830Connected Components Problem in MatrixMediumProblems on BFS/DFSA2Z
536Rotten OrangesMediumProblems on BFS/DFSA2Z SDE
531Flood fill algorithmMediumProblems on BFS/DFSA2Z
2817Cycle Detection in Undirected Graph (bfs)HardProblems on BFS/DFSA2Z
501Detect a cycle in an undirected graphHardProblems on BFS/DFSA2Z
530Distance of nearest cell having oneMediumProblems on BFS/DFSA2Z
537Surrounded RegionsMediumProblems on BFS/DFSA2Z
533Number of enclavesMediumProblems on BFS/DFSA2Z
509Word ladder IHardProblems on BFS/DFSA2Z
510Word ladder IIHardProblems on BFS/DFSA2Z
534Number of islandsMediumProblems on BFS/DFSA2Z
2813Bipartite Graph (DFS)HardProblems on BFS/DFSA2Z
2814Cycle Detection in Directed Graph (DFS)HardProblems on BFS/DFSA2Z
2822Topo SortHardTopo Sort and ProblemsA2Z
502Topological sort or Kahn's algorithmHardTopo Sort and ProblemsA2Z
500Detect a cycle in a directed graphHardTopo Sort and ProblemsA2Z
504Course Schedule IHardTopo Sort and ProblemsA2Z B75
505Course Schedule IIMediumTopo Sort and ProblemsA2Z
506Find eventual safe statesHardTopo Sort and ProblemsA2Z
503Alien DictionaryHardTopo Sort and ProblemsA2Z B75
508Shortest path in undirected graph with unit weightsHardShortest Path Algorithms and ProblemsA2Z
507Shortest path in DAGHardShortest Path Algorithms and ProblemsA2Z
2827Djisktra's AlgorithmHardShortest Path Algorithms and ProblemsA2Z
2828Why priority Queue is used in Djisktra's AlgorithmHardShortest Path Algorithms and ProblemsA2Z
527Shortest Distance in a Binary MazeHardShortest Path Algorithms and ProblemsA2Z
525Path with minimum effortHardShortest Path Algorithms and ProblemsA2Z
519Cheapest flight within K stopsHardShortest Path Algorithms and ProblemsA2Z
764Network Delay TimeMediumShortest Path Algorithms and ProblemsA2Z
524Number of ways to arrive at destinationHardShortest Path Algorithms and ProblemsA2Z
523Minimum multiplications to reach endHardShortest Path Algorithms and ProblemsA2Z
2826Bellman Ford AlgorithmHardShortest Path Algorithms and ProblemsA2Z
522Floyd warshall algorithmHardShortest Path Algorithms and ProblemsA2Z
521Find the city with the smallest number of neighborsHardShortest Path Algorithms and ProblemsA2Z
1221MST theoryEasyMinimumSpanningTree/Disjoint Set and ProblemsA2Z
2825Prim's AlgorithmHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
516Disjoint SetHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
517Find the MST weightHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
515Number of operations to make network connectedHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
513Most stones removed with same row or columnMediumMinimumSpanningTree/Disjoint Set and ProblemsA2Z
511Accounts mergeHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
514Number of islands IIHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
512Making a large islandHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
1006Swim in Rising WaterMediumMinimumSpanningTree/Disjoint Set and ProblemsA2Z
497Bridges in graphHardOther AlgorithmsA2Z
496Articulation point in graphHardOther AlgorithmsA2Z
498Kosaraju's algorithmHardOther AlgorithmsA2Z
1195Introduction to DPEasyIntroduction to DPA2Z
287Climbing stairsMedium1D DPA2Z B75
288Frog JumpMedium1D DPA2Z
289Frog jump with K distancesMedium1D DPA2Z
291Maximum sum of non adjacent elementsMedium1D DPA2Z B75
290House robberMedium1D DPA2Z B75
292Ninja's trainingMedium2D/3D DP and DP on GridsA2Z
2795Grid Unique Paths : DP on Grids (DP8)Medium2D/3D DP and DP on GridsA2Z
300Unique paths IIMedium2D/3D DP and DP on GridsA2Z
298Minimum Falling Path SumMedium2D/3D DP and DP on GridsA2Z
299TriangleMedium2D/3D DP and DP on GridsA2Z
769Ninja and his FriendsMedium2D/3D DP and DP on GridsA2Z
2804Subset sum equal to target (DP- 14)HardDP on SubsequencesA2Z
321Partition equal subset sumHardDP on SubsequencesA2Z
320Partition a set into two subsets with minimum absolute sum differenceHardDP on SubsequencesA2Z
318Count subsets with sum KHardDP on SubsequencesA2Z
317Count partitions with given differenceHardDP on SubsequencesA2Z
541Assign CookiesEasyDP on SubsequencesA2Z SDE
2802Minimum Coins (DP - 20)HardDP on SubsequencesA2Z
324Target sumHardDP on SubsequencesA2Z
2801Coin Change 2 (DP - 22)HardDP on SubsequencesA2Z
325Unbounded knapsackHardDP on SubsequencesA2Z
2803Rod Cutting Problem - (DP - 24)HardDP on SubsequencesA2Z
308Longest common subsequenceHardDP on StringsA2Z SDE B75
2799Print Longest Common Subsequence - (DP - 26)HardDP on StringsA2Z
309Longest common substringHardDP on StringsA2Z
310Longest palindromic subsequenceHardDP on StringsA2Z
2800Minimum insertions to make string palindrome - DP-29HardDP on StringsA2Z
311Minimum insertions or deletions to convert string A to BHardDP on StringsA2Z
313Shortest common supersequenceHardDP on StringsA2Z
306Distinct subsequencesHardDP on StringsA2Z
307Edit distanceHardDP on StringsA2Z SDE
314Wildcard matchingHardDP on StringsA2Z
301Best time to buy and sell stockMediumDP on StocksA2Z B75
302Best time to buy and sell stock IIMediumDP on StocksA2Z
303Best time to buy and sell stock IIIMediumDP on StocksA2Z
304Best time to buy and sell stock IVMediumDP on StocksA2Z
56Best Time to Buy and Sell Stock with CooldownMediumDP on StocksA2Z
305Best time to buy and sell stock with transaction feesMediumDP on StocksA2Z
636Longest Increasing SubsequenceMediumDP on LISA2Z SDE B75
851Print Longest Increasing SubsequenceMediumDP on LISA2Z
2851Longest Increasing Subsequence - (DP-43)MediumDP on LISA2Z
603Largest Divisible SubsetMediumDP on LISA2Z
640Longest String ChainMediumDP on LISA2Z
633Longest Bitonic SubsequenceMediumDP on LISA2Z
780Number of Longest Increasing SubsequencesMediumDP on LISA2Z
327Matrix chain multiplicationHardMCM DP - Partition DPA2Z SDE
2806Matrix Chain Multiplication - Bottom-Up - (DP-49)HardMCM DP - Partition DPA2Z
328Minimum cost to cut the stickHardMCM DP - Partition DPA2Z
326Burst balloonsHardMCM DP - Partition DPA2Z
276Different Ways to Evaluate a Boolean ExpressionMediumMCM DP - Partition DPA2Z
329Palindrome partitioning IIHardMCM DP - Partition DPA2Z
810Partition Array for Maximum SumMediumMCM DP - Partition DPA2Z
2860Maximum Rectangle Area with all 1's - (DP-55)HardDP on SquaresA2Z
2395Count Square Submatrices with All Ones - (DP-56)EasyDP on SquaresA2Z
1028Trie Implementation and OperationsHardTheoryA2Z SDE B75
1027Trie Implementation and Advanced OperationsHardProblemsA2Z SDE B75
1023Longest Word with All PrefixesMediumProblemsA2Z SDE
1026Number of distinct substrings in a stringMediumProblemsA2Z SDE
2390Bit PreRequisites for TRIE ProblemsEasyProblemsA2Z
1024Maximum XOR of two numbers in an arrayHardProblemsA2Z SDE
1025Maximum Xor with an element from an arrayHardProblemsA2Z SDE
983Minimum number of bracket reversals to make an expression balancedHardHard String ProblemsA2Z
982Count and sayHardHard String ProblemsA2Z SDE
2399Hashing In Strings - TheoryEasyHard String ProblemsA2Z
979Rabin Karp AlgorithmHardHard String ProblemsA2Z SDE
981Z functionHardHard String ProblemsA2Z SDE
977KMP Algorithm or LPS arrayHardHard String ProblemsA2Z SDE
980Shortest PalindromeHardHard String ProblemsA2Z
978Longest happy prefixHardHard String ProblemsA2Z
231Count Palindromic SubsequencesMediumHard String ProblemsA2Z
36Sort an array of 0's 1's and 2'sMediumMediumSDE
465Find the Duplicate NumberMediumMediumSDE
2758Inversion of Array (Pre-req: Merge Sort)HardHardSDE
297Grid unique pathsMedium2D/3D DP and DP on GridsSDE B75
563Longest Consecutive Sequence in an ArrayMediumMediumSDE B75
2837Largest Subarray with K sumMediumEasySDE
929Longest Substring Without Repeating CharactersMediumMedium ProblemsSDE
448Find Middle of Linked ListEasyMedium Problems of LLSDE
613Merge two Sorted ListsHardMedium Problems of LLSDE B75
626Remove Nth node from the back of the LLMediumMedium Problems of LLSDE B75
2848Add two numbers as LinkedListMediumMedium Problems of LLSDE
258Delete Node in a Linked List O(1)MediumMedium Problems of LLSDE
621Find the intersection point of Y LLMediumMedium Problems of LLSDE
620Detect a loop in LLMediumMedium Problems of LLSDE B75
614Reverse LL in group of given size KHardHard Problems of LLSDE
618Check if LL is palindrome or notMediumMedium Problems of LLSDE
622Find the starting point in LLMediumMedium Problems of LLSDE
612Flattening of LLHardHard Problems of LLSDE
615Rotate a LLHardHard Problems of LLSDE
47Remove duplicates from sorted arrayEasyEasySDE
319Minimum coinsHardEasy ProblemsSDE
2805Subset SumsHardSubsequences PatternSDE
818Permutation SequenceMediumTrying out all Combos / HardSDE
821Permutations of a StringMediumTrying out all Combos / HardSDE
2757Word Break (print all ways)MediumTrying out all Combos / HardSDE
2771The N-th root of an integerMediumBS on AnswersSDE
90Single element in sorted arrayMediumBS on 1D ArraysSDE
2769Search element in a sorted and rotated array/ find pivot where it is rotatedMediumBS on 1D ArraysSDE
76Kth element of 2 sorted arraysMediumBS on AnswersSDE
2766Allocate Minimum Number of PagesHardBS on AnswersSDE
575Implement Max HeapMediumLearningSDE
713Merge K Sorted ArraysMediumMedium ProblemsSDE B75
2808Implement Stack using Queue (using single queue)EasyLearningSDE
936Sort a StackMediumLearningSDE
687Maximum of Minimums for Every Window SizeMediumMonotonic Stack/Queue Problems [VVV. Imp]SDE
2852Longest Palindrome in a stringMediumMedium String ProblemsSDE
2861Implement ATOI/STRSTRMediumMedium String ProblemsSDE
312Minimum insertions to make string palindromeHardHard String ProblemsSDE
400Valid AnagramEasyBasic and Easy String ProblemsSDE B75
198Compare version numbersMediumMedium String ProblemsSDE
133Inorder TraversalEasyTraversalsSDE
2790Preorder TraversalEasyTraversalsSDE
139Morris Inorder TraversalHardHard ProblemsSDE
138Morris Preorder TraversalHardHard ProblemsSDE
123Right/Left View of BTMediumMedium ProblemsSDE
109Construct a BT from Postorder and InorderHardHard ProblemsSDE
128Check for symmetrical BTsMediumMedium ProblemsSDE
823Populating Next Right Pointers in Each NodeMediumMedium ProblemsSDE
108Search in BSTEasyConceptsSDE
2391Construct BST from given keysEasyPractice ProblemsSDE
103Inorder successor and predecessor in BSTMediumPractice ProblemsSDE
2779Floor in a BSTEasyPractice ProblemsSDE
2777Ceil in a BSTEasyPractice ProblemsSDE
2776Find K-th smallest element in BSTMediumPractice ProblemsSDE B75
99Two sum in BSTHardPractice ProblemsSDE
96BST iteratorHardPractice ProblemsSDE
2773Size of the largest BST in a Binary TreeHardPractice ProblemsSDE
62Binary Tree to Doubly Linked ListMediumHard ProblemsSDE
446Find Median in a StreamMediumHard ProblemsSDE
567Kth largest element in a stream of running integersHardHard ProblemsSDE
279Distinct Numbers in Each SubarrayMediumMedium ProblemsSDE
2839K-th largest element in an unsorted array.MediumMedium ProblemsSDE
2832Flood-fill AlgorithmMediumProblems on BFS/DFSSDE
188Clone GraphMediumProblems on BFS/DFSSDE B75
2818Detect A cycle in Undirected Graph using BFSHardProblems on BFS/DFSSDE
2819Detect A cycle in Undirected Graph using DFSHardProblems on BFS/DFSSDE
2816Detect A cycle in a Directed Graph using DFSHardTopo Sort and ProblemsSDE
2815Detect A cycle in a Directed Graph using BFSHardTopo Sort and ProblemsSDE
2820Topological Sort BFSHardTopo Sort and ProblemsSDE
2821Topological Sort DFSHardTopo Sort and ProblemsSDE
2833Number of islands(Do in Grid and Graph Both)MediumProblems on BFS/DFSSDE B75
499Bipartite graphHardProblems on BFS/DFSSDE
2812Bipartite Check using DFSHardProblems on BFS/DFSSDE
2811Strongly Connected Component(using KosaRaju's algo)HardOther AlgorithmsSDE
520Dijkstra's algorithmHardShortest Path Algorithms and ProblemsSDE
518Bellman ford algorithmHardShortest Path Algorithms and ProblemsSDE
2829Floyd Warshall AlgorithmHardShortest Path Algorithms and ProblemsSDE
2824MST using Prim's AlgoHardMinimumSpanningTree/Disjoint Set and ProblemsSDE
2823MST using Kruskal's AlgoHardMinimumSpanningTree/Disjoint Set and ProblemsSDE
2759Max Product SubarrayHardHardSDE
3150 and 1 KnapsackHardDP on SubsequencesSDE
698Maximum Sum Increasing SubsequenceMediumDP on LISSDE
2797Minimum sum path in the matrixMedium2D/3D DP and DP on GridsSDE
316Coin change IIHardDP on SubsequencesSDE B75
323Subset sum equals to targetHardDP on SubsequencesSDE
322Rod cutting problemHardDP on SubsequencesSDE
1004Super Egg DropMediumMCM DP - Partition DPSDE
2854Palindrome Partitioning (MCM Variation)HardMCM DP - Partition DPSDE
691Maximum Profit in Job SchedulingMedium1D DPSDE
2856Power Set (this is very important)MediumSubsequences PatternSDE
2392Contains DuplicateEasyEasyB75
2404Product of Array Except SelfEasyMediumB75
2760Kadane's Algorithm, maximum subarray sumMediumMediumB75
2396Container with most waterEasyMedium ProblemsB75
2411Sum of Two IntegersEasyInterview ProblemsB75
2402Number of 1 BitsEasyInterview ProblemsB75
2393Counting BitsEasyInterview ProblemsB75
2406Reverse BitsEasyInterview ProblemsB75
2397Decode WaysEasy1D DPB75
2403Pacific Atlantic Water FlowEasyProblems on BFS/DFSB75
495Graph Valid TreeMediumProblems on BFS/DFSB75
709Meeting RoomsEasyMedium/HardB75
710Meeting Rooms IIMediumMedium/HardB75
2407Reorder ListEasyMedium Problems of LLB75
559Group Words by AnagramsMediumMedium String ProblemsB75
2794Palindromic SubstringsMediumMedium String ProblemsB75
331Encode and Decode StringsMediumMedium String ProblemsB75
2783Invert/Flip Binary Tree (Create)MediumMedium ProblemsB75
2408Subtree of Another TreeEasyMedium ProblemsB75