Algorithm Interview QuestionsArray Interview QuestionsDynamic Programming Interview QuestionsGraph Interview QuestionsHashing Interview QuestionsLinkedList Interview QuestionsMatrix Interview QuestionsQueue Interview QuestionsSorting Interview QuestionsSQL Interview QuestionsStack Interview QuestionsString Interview QuestionsTree Interview Questions
Topic
Sliding Window Maximum LeetCode Solution
Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution
Range Sum Query 2D – Immutable Leetcode Solution
Minimum swaps to make sequences increasing
Sum of nearest smaller and greater number
Iterative Inorder Traversal of a Binary Tree
Morris Inorder Traversal
Sqrt (or Square Root) Decomposition Technique
Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i
Armstrong Number
Scramble String
Valid Anagrams
Contiguous Array
Convex Hull Algorithm
Group Anagrams
Integer to English words
Unique Paths II
Maximum Length of Repeated Subarray
Count pair with Given Sum
Minimum Delete Operations to make all Elements of Array Same
Maximum Distance Between two Occurrences of Same Element in Array
Group Multiple Occurrence of Array Elements Ordered by first Occurrence
Union and Intersection of two Linked Lists
Maximum difference between frequency of two elements such that element having greater frequency is also greater
Smallest Subarray with k Distinct Numbers
All Unique Triplets that Sum up to a Given Value
Longest Subarray Having Count of 1s One More than Count of 0s
Maximum Array from Two given Arrays Keeping Order Same
Round Robin Scheduling
Count Subarrays with Same Even and Odd Elements
Find Smallest Range Containing Elements from k Lists
Guess Number Higher or Lower II
Rearrange an Array Such that arr[i] is equal to i
Segregate 0s and 1s in an Array
Find Largest d in Array such that a + b + c = d
Maximum Number of Chocolates to be Distributed Equally Among k Students
Maximum Consecutive Numbers Present in an Array
Move all negative elements to one side of array
Queries for Number of Distinct Elements in a Subarray
Queries on Probability of Even or Odd Number in given Ranges
Total Numbers With no Repeated Digits in a Range
Range Minimum Query (Square Root Decomposition and Sparse Table)
Range Sum Query using Sparse Table
Count and Toggle Queries on a Binary Array
Queries for Decimal Values of Subarrays of a Binary Array
Maximize Elements Using Another Array
Find whether an array is subset of another array
Minimum swaps required to bring all elements less than or equal to k together
Maximum sum of pairs with specific difference
Smallest Good Base
Find top three repeated in array
Maximum sum of a path in a Right Number Triangle
Sorting using trivial hash function
Maximum number of segments of lengths a, b and c
Maximum subsequence sum such that no three are consecutive
Count all subsequences having product less than K
Find duplicates in a given array when elements are not limited to a range
Minimum insertions to form a palindrome with permutations allowed
LCS (Longest Common Subsequence) of three strings
Check if Array Contains Contiguous Integers With Duplicates Allowed
Sum of f(a[i], a[j]) over all pairs in an array of n integers
Longest Repeated Subsequence
Count of index pairs with equal elements in an array
Find Sum of all unique sub-array sum for a given array
Sequences of given length where every element is more than or equal to twice of previous
Find maximum length Snake sequence
Print all triplets in sorted array that form AP
Minimum sum of multiplications of n numbers
Find number of pairs in an array such that their XOR is 0
Count ways to reach the nth stair using step 1, 2 or 3
Minimum Sum Path in a Triangle
Longest subarray not having more than K distinct elements
Morris Traversal
Kth ancestor of a node in binary tree
Maximum possible difference of two subsets of an array
Find postorder traversal of BST from preorder traversal
Inorder Successor of a node in Binary Tree
Given an Array of Pairs Find all Symmetric Pairs in it
Minimum operation to make all elements equal in array
Check if a given array can represent Preorder Traversal of Binary Search Tree
Construct Binary Tree from given Parent Array representation
Given a binary tree, how do you remove all the half nodes?
Iterative Preorder Traversal
Find subarray with given sum (Handles Negative Numbers)
Length of the largest subarray with contiguous elements
Find distance between two nodes of a Binary Tree
Count number of triplets with product equal to given number
Maximum difference between first and last indexes of an element in array
Write Code to Determine if Two Trees are Identical
Find any one of the multiple repeating elements in read only array
Find elements which are present in first array and not in second
Boundary Traversal of binary tree
Check for Palindrome after every character replacement Query
Difference between highest and least frequencies in an array
Diagonal Traversal of Binary Tree
Bottom View of a Binary Tree
Letter Combinations of a Phone Number
Find four elements that sum to a given value (Hashmap)
Count even length binary sequences with same sum of first and second half bits
Longest subsequence such that difference between adjacents is one
Find all triplets with zero sum
k-th missing element in increasing sequence which is not present in a given sequence
How to check if two given sets are disjoint?
Check if a given array contains duplicate elements within k distance from each other
Print Right View of a Binary Tree
Check if two arrays are equal or not
Pair with given product
Maximum path sum in a triangle
Path with maximum average value
Maximum Distance in Array
Subarray with 0 sum
Find missing elements of a range
First element occurring k times in an array
Maximum product of an increasing subsequence
Print all subarrays with 0 sum
Contains Duplicate
Print Maximum Length Chain of Pairs
Print n terms of Newman-Conway Sequence
Count Substrings with equal number of 0s, 1s and 2s
Remove Duplicates from Sorted List II
Form minimum number from given sequence
Print modified array after executing the commands of addition and subtraction
Write a function to get the intersection point of two Linked Lists
Newman-Conway Sequence
Generate all possible sorted arrays from alternate elements of two given sorted arrays
Moser-de Bruijn Sequence
Range Queries for Longest Correct Bracket Subsequence
Print modified array after multiple array range increment operations
Number of indexes with equal elements in given range
Longest Bitonic Subsequence
Golomb sequence
Array Queries for multiply replacements and product
Newmanโ€“Shanksโ€“Williams prime
Difference Array | Range update query in O(1)
Painting Fence Algorithm
Check in binary array the number represented by a subarray is odd or even
Largest subarray with equal number of 0s and 1s
Binary array after M range toggle operations
Constant time range add operation on an array
Delete Nth node from the end of the given linked list
Delete a Node from linked list without head pointer
Count Primes in Ranges
Print the Fibonacci numbers in reverse order
Print Fibonacci sequence using 2 variables
Non-overlapping sum of two sets
Find all pairs (a, b) in an array such that a % b = k
Range LCM Queries
Queries on XOR of greatest odd divisor of the range
Compute nCr % p
Cutting a Rod
Queries for counts of array elements with values in given range
Number of elements less than or equal to a given number in a given subarray
Largest divisible pairs subset
GCDs of given index ranges in an array
Queries for GCD of all numbers of an array except elements in a given range
Find whether a subarray is in form of a mountain or not
Mean of range in array
Subset with sum divisible by m
Check if any two intervals overlap among a given set of intervals
Range sum queries without updates
Max stack
Subset Sum Problem in O(sum) space
Find Index of Closing Bracket for a Given Opening Bracket in an Expression
Products of ranges in an array
Friends Pairing Problem
Happy Number
Palindrome Permutation
Gold Mine Problem
Palindrome Number
Design a stack that supports getMin() in O(1) time and O(1) extra space
Find Maximum Level sum in Binary Tree
Tiling Problem
Permutation Coefficient
Sort a stack using recursion
Longest Increasing Consecutive Subsequence
Red-Black Tree Introduction
Delete middle element of a stack
Sorting array using Stacks
Binomial Coefficient
Binary Search Tree Delete Operation
Best Time to Buy and Sell Stock
Implementation of Deque using Doubly Linked List
Delete consecutive same words in a sequence
Iterative Method to find Height of Binary Tree
Sort a stack using a temporary stack
Reverse a stack without using extra space in O(n)
Clone a Binary Tree with Random Pointers
Top K Frequent Elements
Level order traversal using two Queues
Bubble sort using two Stacks
Reverse individual words
Count subarrays where second highest lie before highest
Find the smallest binary digit multiple of given number
Minimum Operations to convert X to Y
Find maximum difference between nearest left and right smaller elements
Remove brackets from an algebraic string containing + and โ€“ operators
Implement a stack using single queue
Find the First Circular Tour that visits all the Petrol Pumps
Sort an array according to the order defined by another array
Rearrange a binary string as alternate x and y occurrences
Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space
Distinct adjacent elements in an array
Construction of Longest Increasing Subsequence (N log N)
Maximize sum of consecutive differences in a circular array
Three way partitioning of an array around a given range
Minimum time required to rot all oranges
Check if X can give change to every person in the Queue
Check if two nodes are on the same path in a Tree
Check if all levels of two Binary Tree are anagrams or not
Minimum sum of squares of character counts in a given string after removing k characters
Rearrange an array such that โ€˜arr[j]โ€™ becomes โ€˜iโ€™ if โ€˜arr[i]โ€™ is โ€˜jโ€™
Maximum length subsequence with difference between adjacent elements as either 0 or 1
Replace two consecutive equal values with one greater
Find a sorted subsequence of size 3 in linear time
Maximum Product Subarray
Convert array into Zig-Zag fashion
First negative integer in every window of size k
Queue based approach for first non-repeating character in a stream
Distance of nearest cell having 1 in a binary matrix
Sum of minimum and maximum elements of all subarrays of size k
An Interesting Method to generate Binary Numbers from 1 to n
Find the largest multiple of 3
Transpose Graph
Check if the given array can represent Level Order Traversal of Binary Search Tree
Number of siblings of a given Node in n-ary Tree
Check whether a given Binary Tree is Complete or not
Count the number of nodes at given level in a tree using BFS
BFS for Disconnected Graph
Page Replacement Algorithms in Operating Systems
Check if a queue can be sorted into another queue using a stack
Priority Queue using doubly linked list
Implement Stack and Queue using Deque
Form Minimum Number From Given Sequence
Minimum number of distinct elements after removing m items
Convert BST into a Min-Heap without using array
Pattern Occurrences using Stack
Number Of Longest Increasing Subsequence
Merge two BSTs with limited extra space
Count subarrays with equal number of 1โ€™s and 0โ€™s
Iterative Postorder Traversal Using Two Stacks
Stack Permutations (Check if an array is stack permutation of other)
Palindrome Substring Queries
Rearrange array such that even index elements are smaller and odd index elements are greater
Segregate even and odd numbers
Minimum Steps to reach target by a Knight
Binary Tree to Binary Search Tree Conversion using STL set
Growable array based stack
Find Minimum In Rotated Sorted Array
Implementation of Deque using circular array
Move all negative elements to end in order with extra space allowed
Kโ€™th Largest element in BST using constant extra space
Rearrange an array in order โ€“ smallest, largest, 2nd smallest, 2nd largest
Rearrange array such that even positioned are greater than odd
Double the first element and move zero to end
Arrange given numbers to form the biggest number
Kโ€™th Largest Element in BST when modification to BST is not allowed
Tracking current Maximum Element in a Stack
Iterative method to find ancestors of a given binary tree
Check if stack elements are pairwise consecutive
Remove duplicates from sorted array
Check if each internal node of a BST has exactly one child
Elements to be added so that all elements of a range are present in array
Count subarrays having total distinct elements same as original array
Product of array except self
Height of a generic tree from parent array
Find k-th smallest element in BST (Order Statistics in BST)
Linked List Cycle
Vertical sum in a given binary tree
A program to check if a binary tree is BST or not
Check for Identical BSTs without building the trees
Maximum Depth Of Binary Tree
Palindrome Partitioning
First missing positive
Reverse Integer
Reverse words in a string
Reverse a String
Seconds to Days
Program for Bridge and Torch problem
Cuckoo sequence program
Subarrays with distinct elements
Find the minimum distance between two numbers
Boolean Parenthesization Problem
K maximum sums of overlapping contiguous sub-arrays
Count quadruples from four sorted arrays whose sum is equal to a given value x
Count pairs from two linked lists whose sum is equal to a given value
Find sum of non-repeating elements (distinct) elements in an array
Find distinct elements common to all rows of a matrix
Numbers with prime frequencies greater than or equal to k
Convert an array to reduced form
Find pairs with given sum such that elements of pair are in different rows
Common elements in all rows of a given matrix
Count pairs from two sorted arrays whose sum is equal to a given value x
Find all permuted rows of a given row in a matrix
How to print maximum number of Aโ€™s using given four keys
Collect maximum points in a grid using two traversals
Given two unsorted arrays find all pairs whose sum is x
Convert BST to Min Heap
Sort elements by frequency
Convert String To Int
Find the first repeating element in an array of integers
Maximum weight transformation of a given string
Word Wrap Problem
The Painterโ€™s Partition Problem
Maximum Subarray Sum Excluding Certain Elements
Merge Two Balanced Binary Search Trees
Binary Search Tree Search and Insertion
Count items common to both the lists but with different prices
Mobile Numeric Keypad Problem
Find the subarray with least average
Find the smallest positive integer value that cannot be represented as sum of any subset of a given array
Minimum number of subsets with distinct elements
Maximum sum bitonic subarray
Find minimum number of merge operations to make an array palindrome
Minimize the maximum difference between the heights
Longest Span with same Sum in two Binary arrays
Convert a normal BST to Balanced BST
Largest area rectangular sub-matrix with equal number of 1โ€™s and 0โ€™s
A Space Optimized DP solution for 0-1 Knapsack Problem
Check given array of size n can represent BST of n levels or not
Find maximum average subarray of k length
Printing brackets in Matrix Chain Multiplication Problem
Size of The Subarray With Maximum Sum
Find minimum difference between any two elements
Minimum number of jumps to reach end
Number of palindromic paths in a matrix
Largest rectangular sub-matrix whose sum is 0
Maximum sum rectangle in a 2D matrix
Count minimum steps to get the given desired array
Maximum Sum Increasing Subsequence
Largest Sum Contiguous Subarray
Matrix Chain Multiplication
Binary Tree to Binary Search Tree Conversion
Sorted Linked List to Balanced BST
Sorted Array to Balanced BST
Transform a BST to Greater sum Tree
Convert a BST to a Binary Tree such that sum of all greater keys is added to every key
Advantages of BST over Hash Table
Construct BST from its given Level Order Traversal
Construct BST from given Preorder Traversal
BST to a Tree with Sum of all Smaller Keys
Find the node with minimum value in a Binary Search Tree
Single Number
Shortest Palindrome
Shuffle an Array
Maximal Square
Super Ugly Number
Dividing Array into Pairs With Sum Divisible by K
Find Number of Employees Under every Employee
Count Distinct Elements in Every Window of Size K
Count Subsets Having Distinct Even Numbers
Find Three Element From Different Three Arrays Such That a + b + c = sum
Special Number
Divisible Pairs Counting
Word Search
K Empty Slots
The Knapsack Problem
Bellman Ford Algorithm
Huffman Coding
Data Structure Designing
Longest Increasing Subsequence
Reverse Bits
Construct Binary Tree from Given Inorder and Preorder Traversals
Smallest Element Repeated Exactly K Times
K-th Distinct Element in an Array
Cumulative Frequency of Count of Each Element in an Unsorted Array
Group Words With Same Set of Characters
First non Repeating Element
Second Most Repeated Word in a Sequence
Count Pairs Whose Products Exist in Array
Print All Distinct Elements of a Given Integer Array
Pair of Positive Negative Values in an Array
Remove Minimum Number of Elements Such That no Common Element Exist in both Array
Maximum occurring character in a string
Count Pairs With Given Sum
Insert Delete GetRandom
Merge Overlapping Intervals
Decode Ways
Median of Two Sorted Arrays
Edit Distance
Maximum Product Subarray
Substring With Concatenation Of All Words
Top K Frequent Words
Reverse a Path in BST using Queue
Print Ancestors of a Given Binary Tree Node Without Recursion
Find Maximum of Minimum for Every Window Size in a Given Array
Identify and Mark Unmatched Parenthesis in an Expression
Iterative Depth First Traversal of Graph
Minimum Bracket Reversals
Expression Contains Redundant Bracket or Not
Reverse a Number Using Stack
Swap Nodes In Pairs
Zigzag Conversion
Valid Palindrome
Check if Two Expressions With Brackets are Same
Priority Queue Using Singly Linked List
Reversing the First K elements of a Queue
Sorting a Queue without Extra Space
Longest Common Prefix Using Word by Word Matching
Minimum Size Subarray Sum
Intersection of Two Arrays
Level order Traversal in Spiral Form
Kth Smallest Element in a BST
Search an Element in Sorted Rotated Array
Valid Parenthesis String
Maximum Product Subarray
Toeplitz Matrix
Balanced Binary Tree
Min Stack
Implement Stack using Queues
Interval Tree
Set Matrix Zeroes
Smallest Multiple of a Given Number
Construct Complete Binary Tree from its Linked List Representation
Lowest Common Ancestor
Reversing a Queue using Recursion
3 Sum
Averages of Levels in Binary Tree
Queue using Stacks
Longest Palindromic Subsequence
Find The Duplicate Number
Maximum Sum of 3 Non-Overlapping Subarrays
Minimum Index Sum of Two Lists
Reservoir Sampling
Reversing a Queue
Split Array Into Consecutive Subsequences
Lowest Common Ancestor in Binary Search Tree
KMP Algorithm
Most Frequent Element in an Array
Evaluate Division
Prim’s Algorithm
Sudoku Solver
Segment Tree
Minimum Path Sum
Find Pair with Greatest Product in Array
Minimum Cost to Hire K Workers
Find the Duplicate Element
Fizz Buzz
Arithmetic Expression Evaluation
Maximum Product of Indexes of Next Greater on Left and Right
Check for Balanced Parentheses in an Expression
Evaluation of Postfix Expression
Reverse a Stack Using Recursion
Find if an Expression has Duplicate Parenthesis or Not
How to Implement Stack Using Priority Queue or Heap?
Iterative Tower of Hanoi
How to Efficiently Implement k Stacks in a Single Array?
Find Maximum Depth of Nested Parenthesis in a String
Expression Evaluation
How to Create Mergable Stack?
The Stock Span Problem
Find Maximum Sum Possible Equal Sum of Three Stacks
Print Next Greater Number of Q queries
Check if an Array is Stack Sortable
Smallest Subarray With all Occurrences of a Most Frequent Element
Find Top K (or Most Frequent) Numbers in a Stream
Find the Only Repetitive Element Between 1 to N-1
Reverse a String using Stack
Next Greater Frequency Element
Number of NGEs to the Right
Balanced Expression with Replacement
Tower Of Hanoi
Sliding Window Technique
GCD Of Two Numbers
MiniMax Algorithm
Target Sum
Counting Bits
Merge K Sorted Linked Lists
Wiggle Sort
Decode String
Print a Binary Tree in Vertical Order
Finding K closest element
Priority Queue in C++
Priority Queue
Change the Array into Permutation of Numbers From 1 to N
Jump Game
Recursion
Binary Search Tree
Prefix to Infix Conversion
Postfix to Infix Conversion
Prefix to Postfix Conversion
Postfix to Prefix Conversion
Maximum Binary Tree
Nth Catalan Number
Combination Sum
Next Permutation
Longest Common Subsequence
Max Area of Island
Search in Sorted Rotated Array
Binary Tree zigzag level order Traversal
Recover Binary Search Tree
Populating Next Right Pointers in Each Node
Top View of Binary Tree
Unique Paths
Merge Two Sorted Linked Lists
Repeated Substring Pattern
Letter Case Permutation
Find Median from data Stream
Level of Each node in a Tree from source node
Longest Common Prefix using Sorting
House Robber
Maximum Subarray
Sliding Window Maximum
Delete And Earn
Length of Longest Fibonacci Subsequence
Rainbow Table
Merging Intervals
Backspace String Compare
Graph Cloning
Hamming Distance
First Bad Version
Word Pattern
Peak Index in a Mountain Array
Regular Expression Matching
Reorganize String
Find Duplicate Subtrees
String Compression
4Sum
Create Maximum Number
Degree of an array
Queue Reconstruction by Height
Search Insert Position
Find Peak Element
Symmetric Tree
K-th Smallest Element in a Sorted Matrix
Minimum Height Trees
Longest Common Prefix using Trie
Valid Number
Trim a Binary Search Tree
Valid Triangle Number
Convert Sorted List to Binary Search Tree
Kruskal Algorithm
Number Of 1 bits
Power of Two
Validate Binary Search Tree
Reverse Nodes in K-Group
Maximum size subarray sum equals k
Path Sum
Find the Closest Palindrome number
Count and Say
Level Order Traversal of Binary Tree
Tree Traversal (Preorder, Inorder & Postorder)
LRU Cache Implementation
Merge Sort
Find unique character in a string
Integer to Roman
Valid Sudoku
Palindrome Partitioning
Add two numbers
Next greater element
Deletion in a Binary Tree
Unique Binary Search Trees
Floyd Warshall Algorithm
Bipartite Graph
Sieve of Eratosthenes
Strongly Connected Component
N queen problem
Rabin Karp Algorithm
Guess The Word
Decision Tree
New 21 Game
Verify Preorder Serialization of a Binary Tree
Missing Number
Merge Sorted Array
Partition Equal Subset Sum
Last Stone Weight
Sort Colors
Rotate Array
Applications of Breadth First Search and Depth First Search
Container with Most Water
Distinct Subsequences
Matrix Chain Multiplication using Dynamic Programming
Subarray Sum Equals k
Infix to Postfix
Isomorphic Strings
Binary Tree Data Structure
Climbing stairs
Topological Sorting
Insertion Sort
Self Dividing Numbers
Quick Sort
Types of Binary Tree
Insertion in a Binary Tree
BFS vs DFS for Binary Tree
Depth First Search (DFS) for a Graph
Breadth First Search (BFS) for a Graph
String comparison containing wildcards
Serialize and Deserialize Binary Tree
Fibonacci numbers
Graph and its representation
Reverse a linked list
Subset sum problem
Circular Queue
Heap Sort
Ugly Numbers
Dynamic Programming Basics
Dijkstra Algorithm
Coin Change Problem
Multiplication of Two Matrices
Subtraction of Two Matrices
Check if Two given Matrices are Identical
Addition of Two Matrices
Transpose of a Matrix
Check whether Strings are K Distance Apart or Not
Program to Toggle all Characters in a String
Check length of a String is Equal to the Number Appended at its Last
Generate all Binary Strings Without Consecutive 1’s
Check if all Rows of a Matrix are Circular Rotations of Each Other
Sort a String According to Another String
Check if String can Become Empty by Recursively Deleting given Substring
Smallest Palindrome after Replacement
Check if String Follows Order of Characters by a Pattern or not
Split Four Distinct Strings
Even Substring Count
Reverse String Without Temporary Variable
Palindrome using Recursion
Minimum Characters to be Removed to Make a Binary String Alternate
Print all Palindromic Partitions of a String
Count the Pairs at Same Distance as in English Alphabets
Minimum Characters to be Added at Front to Make String Palindrome
Convert a String that is Repetition of a Substring of Length K
Nth Character in Concatenated Decimal String
Kth Non-repeating Character
Compare Two Version Numbers
Remove Minimum Characters so that Two Strings Become Anagrams
Generate all Binary Strings from Given Pattern
Print all Possible Ways to Break a String in Bracket Form
Caesar Cipher
Longest Common Subsequence with Permutations
Perfect Reversible String
Longest Palindrome can be Formed by Removing or Rearranging Characters
Longest Common Prefix Word by Word Matching
Longest Common Prefix using Character by Character Matching
Permutations of a Given String Using STL
Sum of numbers in String
Longest Common Prefix using Divide and Conquer
Lower Case To Upper Case
Longest Common Prefix Using Binary Search II
Print Shortest Path to Print a String on Screen
Remove Extra Spaces from a String
Change Gender of a given String
Count Number of Substrings with K Distinct Character’s
Removing Spaces from a String using stringstream
Pangram Checking
Repeated Subsequence of Length Two or More
Palindrome Permutations of a String
Split a string
1`s and 2`s complement of binary number
Longest Common Extension
Convert string1 to string2 in one edit
Find First non-repeating character in a string
Remove recurring digits in a given number
Recursively print all the sentences that can be formed from list of word lists
Online Algorithm for Checking Palindrome in a Stream
Check if Two given Strings are Isomorphic to each other
Length of Longest valid Substring
Program to add two binary digits
Recursive Implementation of atoi()
Reverse a string without affecting special characters
Recursive function to do substring search
Print Longest common subsequence
Rotate string to get lexicographically minimum string
Number of sub-strings which recursively add up to 9
Palindrome string (number)
Print all possible words from phone digits
Shortest Superstring Problem
Transform one string to another using minimum number of given operations
Print string of odd length in ‘X’ format
Minimum insertions to form a shortest palindrome
print all palindromic partitions
Check rearranged string can form a palindrome
Palindromes in a given range
String(represents an integer) to value
Count the number of words
Print all anagrams together in a sequence of words
Lexicographic rank of string
Remove spaces from a string
Find, second, frequent, character
Find the second most frequent character
Check if a given string is a rotation of a palindrome
Sort an array of strings
Recursively remove all adjacent duplicates
Remove ‘b’ and ‘ac’ from a given string
wildcard character matching
Longest Palindromic Substring
Given string is interleaving of two other strings or not
Print all permutations with repetition
Run length encoding
List items containing all characters of a given word
Write a program to print all permutations of a given string
Check whether two strings are anagram of each other
Print all interleavings of given two strings
Print all duplicates in the input string
A Program to check if strings are rotations of each other or not
Given a string find its first non-repeating character
Reverse words in a given string
Smallest window in a string containing all characters of another string
Divide a string in N equal parts
Print Reverse of a string (Recursion)
Remove characters from first string which are in second
Sorting the array of strings
Remove duplicates from a string
Concatenation of two strings
Reverse a String
Most repeating character in a string
Given a sorted array and a number x, find the pair in array whose sum is closest to x
Find the subarray whose sum is equal to a given number X
Basic SQL Interview Questions
Aggregate Functions in SQL
DB Locks in SQL
SQL indexes Interview Questions
Joins in SQL Interview Questions
Keys in SQL
Optimization in SQL
Oracle in SQL
Parameterized Query in SQL
Privileges and Roles in SQL
SQL Query Interview Questions
SQL Server Interview Questions
Arrange Even and Odd number such that Odd comes after Even
Minimum number of Merge Operations to make an Array Palindrome
Form Minimum Number from Given Sequence of D’s and I’s
Longest Span with same Sum in two Binary Arrays II
Find the Subarray of given length with Least Average
Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized
Merge K Sorted Arrays and Print Sorted Output
Find the Minimum Element in a Sorted and Rotated Array
Find the point where a monotonically increasing function becomes positive first time
Print all Possible Combinations of R Elements in a given Array of size N
Sort Elements by Frequency II
Stock Buy Sell to Maximize Profit
Merge Overlapping Intervals II
Maximum Subarray Sum using Divide and Conquer
Pancake Sorting Problem
Pancake Sorting
Arrange given Numbers to Form the Biggest Number II
Iterative Implementation of Quick Sort
Shuffle a given Array
Find the Row with Maximum Number of 1’s
Sorting a K Sorted Array
Maximum Product Subarray II
Largest Subarray with Equal Number of 0’s and 1’s
Find the two Numbers with Odd Occurrences in an Unsorted Array
Maximum Sum Increasing Subsequence
Implement Two Stacks in an Array
Number of Smaller Elements on Right Side
Increasing Subsequence of Length three with Maximum Product
Elements Appear more than N/K times in Array
Find the Peak Element from an Array
Rearrange Positive and Negative Numbers Alternatively in Array
Find the Maximum Repeating Number in Array
Tug of War
First Circular Tour to Visit all the Petrol Bunks
Count Possible Triangles
Maximum Circular Subarray Sum
Four Elements that Sum to Given
Maximum Length of Chain Pairs
Find Pair with Given Difference
Partition Problem
The Celebrity Problem
Find a Sorted Subsequence of size 3
Subarray with Given Sum
Maximum Element in an Array which is Increasing and then Decreasing
Count Minimum Steps to Get the given Array
Find the Lost Element From a Duplicated Array
Rearrange given Array in Maximum Minimum Form
Subarray and Subsequence
Merge Two Sorted Arrays
Count of Triplets With Sum Less than Given Value
Reorder Array Using Given Indexes
Next Greater Element in an Array
Merging Two Sorted Arrays
Reorder an Array According to the Given Indexes
Find a Fixed Point in a Given Array
Find Element Using Binary Search in Sorted Array
Find Triplet in Array With a Given Sum
Check if the Elements of an Array are Consecutive
Find Duplicates in an Array in Most Efficient Way
Sort 0s 1s and 2s in an Array
Find Leaders in an Array
Smallest Positive Number Missing in an Unsorted Array
Find K Length Subarray of Maximum Average
Find Pythagorean Triplets from Array
Move All the Zeros to the End of the Given Array
Find Minimum Distance Between Two Numbers in an Array
Rotate Image by 90 degrees
Count Number of Occurrences in a Sorted Array
Maximum Sum of Non Consecutive Elements
Find Smallest Missing Number in a Sorted Array
First Repeating Element
Multiplication of Previous and Next
A Product Array Puzzle
Find All Pairs With a Given Difference
Find all Common Elements in Given Three Sorted Arrays
Find the first Repeating Number in a Given Array
Print All Distinct Elements of the Array
Maximum difference between two elements such as larger element comes after smaller
Majority Element
Find the First and Second Smallest Elements
Find the Number Occurring Odd Number of Times in an Array
Sort Elements by Frequency of Occurrences
Find the Missing Number
Find Nearest Greater and Smaller Element
Insert Node in the Sorted Linked List
Detect a loop in the Linked List
Find Nth Node
Swap Kth Node from beginning with Kth Node from End
Swap nodes in the linked list
Delete Last Occurrence
Check if a Linked list of Strings form a Palindrome
Merge two sorted linked lists such that merged list is in reverse order
Rearrange a given linked list in-place
Clone a Linked List with next and random pointer
Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes
Quick Sort on SIngly Linked List
Flatten a multilevel linked list
Rotate a Linked List
Union and Intersection of Two Linked Lists
Sort linked which is sorted on absolute values
Binary Tree to Doubly linked list
Rearrange a linked list in Zig-Zag
Clone a linked list with next and random pointer (Hashing)
Flattening a linked list
Segregate even and odd nodes in a linked list
Delete a node of a linked list at given position
Compare two strings(linked lists)
Merge sort better than quick sort for linked lists
Sort a linked list that is sorted alternating ascending and descending
Remove middle points in a linked list of line segments
Can we reverse a linked list in less than O(n) time ?
Merge a linked list into another at alternate positions
Delete N nodes after M
Sort a linked list with 0s, 1s and 2s
Triplet from three linked lists with given sum
Delete a node under given conditions
Reverse a Linked List in groups
Reverse a singly linked list recursively
Reverse a Singly Linked List (Iterative/Non-Recursive)
Remove all duplicates in an unsorted linked list
Remove all duplicates in a sorted linked list
Check if the linked list is palindrome
Total number of occurrences of a given item in the linked list
Find nth node of the Linked list from the end
Find middle of the Linked List
Insert nodes in a linked list in a sorted way (Ascending Order)
Check if two linked lists are identical
Move last element of the Linked List at first place
Delete a node in doubly linked list
How to Delete a Linked List
Split linked list using alternate nodes
Create a Doubly Linked List
Delete a Tree
Binary Tree
Searching a node in a Binary Search Tree
Binary Tree Level order traversal in Java
Java program to find the number of Nodes in a Binary Tree
Largest Sum Contiguous Subarray
Reverse an Array
Find a Triplet That Sum to a Given Value
Find elements pair from array whose sum equal to number
Translate ยป