Concept of coding

Coding of DS & Algo makes very easy with the help of coding pattern

    

Below are selected problems segregated based on the patterns. This will help you to understand the pattern and know type of problems where this pattern needs to be applied. 


Coding Pattern

Problem

Level

Solution

Warmup

Sqrt

Easy

MyGit


Reverse Vowel

Easy

MyGit


Valid Palindrome

Easy

MyGit


Valid Anagram

Easy

MyGit


Shortest Word Distance

Easy

MyGit


Number of Good Pairs

Easy

MyGit

Two Pointers

Pair with Target Sum

Easy

MyGit


Remove Duplicates

Easy

MyGit


Squaring a Sorted Array

Easy

MyGit


Triplet Sum to Zero

Easy

MyGit


Triplet Sum Close to Target

Medium

MyGit


Triplets with smaller sum

Medium

MyGit


Subarrays with Product Less than a Target

Medium

MyGit


Dutch National Flag Problem

Medium

MyGit


Quadruple Sum to Target

Medium

MyGit


Comparing Strings containing Backspaces

Easy

MyGit


Minimum Window Sort

Medium

MyGit

Island (Matrix Traversal)

Number of Islands

Easy

MyGit


Biggest Island

Easy

MyGit


Flood Fill

Easy

MyGit


Number of Closed Islands

Easy

MyGit


Island Perimeter

Easy

MyGit


Number of distinct Island

Medium

MyGit


Detect cycles in Matrix

Medium

MyGit





Fast and Slow Pointers

LinkedList Cycle

Easy

MyGit


Start of LinkedList cycle

Medium

MyGit


Happy Number

Medium

MyGit


Middle of the LinkedList

Easy

MyGit


Palindrome LinkedList

Medium

MyGit


Rearrange of LinkedList

Medium

MyGit


Cycle in a Circular Array

Hard

MyGit





Sliding Window

Maximum Sum Subarray of Size K

Easy

MyGit


Smallest Subarray With a Greater Sum

Easy

MyGit


Longest Substring with K distinct Characters

Medium

MyGit


Fruits into Baskets

Medium

MyGit


Longest Substring with same letters after Replacement

Hard

MyGit


Longest Subarray with Ones after Replacement

Hard

MyGit


Permutation in a string

Hard

MyGit


String Anagrams

Hard

MyGit


Smallest Window containing Substring

Hard

MyGit


Words Concatenation

Hard

MyGit





Merge Intervals

Merge Intervals

Medium

MyGit


insert Intervals

Medium

MyGit


Intervals Intersection

Medium

MyGit


Conflicting Appointments

Medium

MyGit


Minimum Meeting Rooms

Medium

MyGit


Maximum CPU Load

Hard

Similar LeetCode1 , LeetCode2MyGit


Employee Free Time

Hard

MyGit





Cyclic Sort

Cyclic Sort

Easy

MyGit


Find the missing number

Easy

MyGit


Find all missing numbers

Easy

MyGit


Find the duplicate number

Easy

MyGit


Find all duplicate numbers

Easy

MyGit


Find the corrupt pair

Easy

MyGit


Find the smallest missing positive number

Medium

MyGit


Find the first K missing positive numbers

Hard

MyGit





In-Place Reversal of a Linked List

Reverse Linked list

Easy

MyGit


Reverse a sublist

Medium

MyGit


Reverse every K-element sub list

Medium

MyGit


Rotate a linked list

Medium

MyGit


Reverse alternating K-elements Sub-list

Medium

MyGit





Monotonic Stack

Description


MyGit


Next Greater Element

Easy

MyGit


Daily Temperature

Easy

MyGit


Remove Nodes From Linked List

Easy

MyGit


Remove All Adjacent Duplicates In String

Easy

MyGit


Remove All Adjacent Duplicates In String II

Medium

MyGit


Remove K Digits

Hard

MyGit





Tree Breadth First Search





Binary Tree level order Traversal

Easy

MyGit


Binary Tree level order Traversal Reverse

Easy

MyGit


Zig Zag Traversal

Medium

MyGit


Level Average in Binary Tree

Easy

MyGit


Minimum Depth of a Binary Tree

Easy

MyGit


Level Order Successor

Easy

MyGit


Connect Level Order Siblings

Medium

MyGit


Connect All Level Order Siblings

Medium

MyGit


Right View of Binary Tree

Easy

MyGit

Tree Depth First Search





Binary tree Path Sum

Easy

MyGit


All paths for a sum

Medium

MyGit


Sum of path Numbers

Medium

MyGit


Path With Given Sequence

Medium

MyGit


Counts path for a sum

Medium

MyGit


Tree Diameter

Medium

MyGit


Path with maximum Sum

Medium

MyGit

Two Heaps Pattern





Find the Median of a Number Stream

Medium

MyGit


Sliding Window Median

Hard

GeeksForGeeks


Maximise Capital

Hard



Next Interval

Hard






Subsets

Apply BFS approach




Subsets

Easy

MyGit


Subsets With Duplicates

Easy

MyGit


Permutation

Medium

MyGit


String Permutation by Changing case

Medium

MyGit


Balanced Parentheses

Hard

MyGit


Unique Generalised Abbreviations

Hard

MyGit


Evaluate Expression

Hard

MyGit


Structurally unique Binary Search Tree

Hard

MyGit


Count of Structurally Unique Binary Search Tree

Hard

MyGit

Modified Binary Search





Order agnostic Binary Search

Easy

MyGit


Ceiling of a number

Medium

GeeksForGeeksMyGit


Next Letter

Medium

MyGit


Number Range

Medium

MyGit


Search in a Sorted Infinite Array

Medium

MyGit


Minimum Difference element

Medium

MyGit


Bitonic Array Maximum

Easy

MyGit


Search Bitonic Array

Medium

MyGit


Search in rotated array

Medium

MyGit


Rotation Count

Medium

MyGit

Top K Elements





Top K Numbers

Easy

MyGit


Kth Smallest Number

Easy

MyGit


K closest points to the origin

Easy

MyGit


Connect Ropes

Easy

MyGit


Top K Frequent Numbers

Medium

MyGit


Frequency Sort

Medium

MyGit


Kth Largest number in a stream

Medium

MyGit


K Closest Numbers

Medium

MyGit


Maximum Distinct Element

Medium

MyGit


Sum of elements

Medium

MyGit


Rearrange String

Hard

MyGit


Rearrange String K distance apart

Hard

MyGit


Scheduling Tasks

Hard

MyGit


Frequency Stack

Hard

MyGit

K-Way Merge





Description




Merge K Sorted Lists

Medium

MyGit


Kth Smallest Number in M sorted Lists

Medium

MyGit


Kth Smallest number in a sorted matrix

Hard

MyGit


Smallest Number range

Hard

MyGit


K Pair with Largest Sums

Hard

MyGit


K Pair with smallest sum

Hard

MyGit

0/1 Knapsack (DP)





Understanding of DP




0/1 knapsack

Medium

MyGit


Equal Subset sum partition

Medium

MyGit


Subset Sum

Medium

MyGit


Minimum Subset Sum Difference

Medium

MyGit


Count of Subset Sum

Hard

MyGit


Target Sum

Hard

MyGit

Unbounded Knapsack (DP)





Rod Cutting


MyGit


Coin Change


MyGit


Minimum Coin Change


MyGit


Maximum Ribbon Cut


MyGit

Fibonacci Numbers (DP)





Fibonacci numbers


MyGit


Stair case


MyGit


Number Factors


MyGit


Minimum Jumps to reach the end


MyGit


Minimum Jump with Fee


MyGit


House Thief


MyGit

Longest Common Substring (DP)





Longest Common Substring


MyGit


Longest Common Subsequence


MyGitMyGit


Minimum Deletion and Insertion to transform a String into another


MyGit


Longest Increasing Subsequence


MyGit


Maximum Sum Increasing Subsequence


MyGit


Shortest Common Super sequence


MyGitMyGit


Minimum Deletions to make a sequence sorted


MyGit


Longest Repeating Subsequence


MyGit


Subseqence pattern matching


MyGit


Longest Bitonic Subsequence


MyGit


Longest Alternating Subsequence


MyGit


Edit Distance


MyGit


Strings Interleaving


MyGit

Palindromic Subsequence (DP)





Longest Palindromic Subsequence


MyGit


Longest Palindromic substring


MyGit


Count of palindromic Subsequence


MyGit


Minimum Deletion in a string to make it a Palindrome


MyGit


Minimum insertions in a string to make it a palindrome


MyGit


Find if a string is K-Palindromic


MyGit


Palindromic Partitioning


MyGit

Backtracking





Combination Sum

Medium

MyGit


Word Search

Medium

MyGit


Sudoku Solver

Medium

MyGit


Factor Combinations

Medium

MyGit


Split a string into Max Number of unique Substrings

Medium

GeeksForGeeksMyGit

Topological Sort





Tasks Scheduling

Medium

MyGit


Tasks Scheduling Order

Medim

MyGit


All Tasks Scheduling Order

Hard

MyGit


Alien Dictionary

Hard

MyGit


Reconstructing a sequence

Hard

MyGit


Minimum Height Tree

Hard

MyGit