Home
Previous year paper
Algorithms
Notes
About us
Interview Preparation
"Don't practice until you get it right, practice until you can't get it wrong."
ARRAY
trapping rainwater
K-Concatenation
Find Subarray with Given Sum
Equilibrium index of an Array
chocolate distribution problem
stock buy sell to maximize profit
maximum product subarray
merging intervals
sort an array of 0s 1s and 2s
next permutation
STRING
Print Words Together Set Characters
Generate All Binary Strings From Given Pattern
Smallest Window Contains Characters String
Count Ways Increase Lcs Length Two Strings One
Given A Sequence Of Words Print All Anagrams Together
Anagram Substring Search Search Permutations
Check Two Strings K Anagrams Not
Check Binary Representations Two Numbers Anagram
Longest Palindromic Substring Set 2
Find The Smallest Window In A String Containing All Characters Of Another String
STACKS AND QUEUES
Implement Two Stacks In An Array
Design A Stack With Find Middle Operation
Efficiently Implement K Stacks Single Array
Implement Stack Using Priority Queue Or Heap
Stack Set 2 Infix To Postfix
Iterative Tower Of Hanoi
Length Of The Longest Valid Substring
Lru Cache Implementation
Minimum Time Required So That All Oranges Become Rotten
Queue Based Approach For First Non Repeating Character In A Stream
SEARCHING AND SORTING
Majority Element
Searching Array Adjacent Differ K
Find A Repeating And A Missing Number
Ceiling In A Sorted Array
Find A Pair With The Given Difference
Find Four Elements That Sum To A Given Value Set 2
Median Of Two Sorted Arrays Of Different Sizes
Maximum Sum Such That No Two Elements Are Adjacent
Find Common Elements Three Sorted Arrays
Count Triplets With Sum Smaller That A Given Value
LINKED LIST
Given Only A Pointer To A Node To Be Deleted In A Singly Linked List How Do You Delete It
Find First Non Repeating Character Stream Characters
Nth Node From The End Of A Linked List
Detect And Remove Loop In A Linked List
Write A Function To Get The Intersection Point Of Two Linked Lists
Remove Duplicates From An Unsorted Linked List
Merge Sort For Linked List
Delete Nodes Which Have A Greater Value On Right Side
Segregate Even And Odd Elements In A Linked List
Sum Of Two Linked Lists
TREES
Clone Binary Tree Random Pointers
Count Subtress Sum Given Value X
Inorder Tree Traversal Without Recursion
Inorder Tree Traversal Without Recursion And Without Stack
Morris Traversal For Preorder
Iterative Postorder Traversal
Diagonal Traversal Of Binary Tree
Print Binary Tree Vertical Order
Boundary Traversal Of Binary Tree
Perfect Binary Tree Specific Level Order Traversal
GRAPHS
Roads and Libraries
Journey to the Moon
Even Tree
Course Schedule II
Mancunian And Liverbird Go Bar Hopping
Cheapest Flights Within K Stops
Dhoom 4
Monk And The Islands
Connected Horses
We Are On Fire
BIT MANIPULATION
Find the two non-repeating elements in an array of repeating elements
Count set bits in an integer
Find the Number Occurring Odd Number of Times
Check if a number is Bleak
Copy set bits in a range
Write an Efficient Method to Check if a Number is Multiple of 3
Find position of the only set bit
Binary representation of a given number
Write an Efficient C Program to Reverse Bits of a Number
Count number of bits to be flipped to convert A to B