graph in social networks 
0 
101 
Algorithms  Misc 

Given a set of positive integer, divide in 2 set such that the average is same. 
0 
250 
Algorithms  Dynamic Programming  Java 
Groupon 
Find sum of bitwise AND of all possible subsets 
1 
223 
Algorithms  Dynamic Programming 
DEShaw 
The Travelling Ant 
0 
279 
Algorithms  Dynamic Programming 
DEShaw 
Arrange the disks 
4 
379 
Algorithms  Data Structures  Greedy 

Write a function, given the number of stories in the building and calculates the number of different apartment combinations 
0 
131 
Algorithms 

How could you arrange 'N' coin in 'X' bags? 
0 
158 
Algorithms  Divide and Conquer  Greedy 

Backtracking Sudoku 
0 
491 
Algorithms  Backtracking  Java 

Number of combinations for a given sum (with restriction) 
0 
393 
Algorithms  Combinatorial  Dynamic Programming  Mathematical 

Comparison of Red Black Tree and AVL Tree 
1 
916 
Algorithms  Data Structures  Tree 
Amazon 
Time complexity of recursive statement 
5 
358 
Algorithms  Data Structures  Recursion 

update Dijkstra’s algorithm in case there is 2 shortest paths from strating node to other node 
0 
321 
Algorithms  C  Graph 

How to print each subsequence of size n/2 from an array of size n? 
1 
522 
Algorithms  Data Structures 
Microsoft 
Difference between BFS abd DFS. 
7 
787 
Algorithms  BFS  DFS  Graph  Tree 
Thoughtworks 
How to perform left rotation in RedBlack tree. 
0 
216 
Algorithms 

How to divide number M into N parts? where the value of N is dynamic, depending on the value of M 
0 
322 
Algorithms  Java 

Probability analysis and randomized algorithm 
1 
240 
Algorithms 

complexity of pow(a,b) 
0 
204 
Algorithms 

Largest of three integers without comparison operators 
2 
490 
Algorithms 
Qualcomm 
Algorithm to compute a list of reachable positions 
0 
311 
Algorithms  Java 

What is merge sorting? 
2 
622 
Algorithms 
Practo 
What is a backtracking algorithm? 
2 
661 
Algorithms 
Practo 
Stock market prediction 
1 
485 
Algorithms 
One97 
Find maximum sum 
2 
742 
Algorithms 
Ola Cabs 
Find Min element from stack with O(1). 
2 
815 
Algorithms  Data Structures 
Ola Cabs 
Write automation script for testing. 
0 
477 
Algorithms  programminglanguage 
Ola Cabs 
Write pseudo code to show that two strings are anagrams of each other. 
1 
534 
Algorithms 
Ola Cabs 
Explain the depth of recursion? 
2 
856 
Algorithms 
Intel 
Exactly simulate recursive algorithm into Iterative 
0 
182 
Algorithms  Recursion 

Define flow chart 
1 
501 
Algorithms 
CGI 
Define algorithm 
7 
487 
Algorithms 
CGI 
Sort an alphanumeric array into separate arrays. 
3 
450 
Algorithms 
CGI 
Write the code for selection sort. 
3 
435 
Algorithms 
CGI 
What is DSA? 
1 
514 
Algorithms 
CGI 
Nearest upper bound and nearest lower bound of complexity 
0 
135 
Algorithms 

Write a code to multiply a number with 3.5 without using *,/,% operator? 
2 
433 
Algorithms 
Aricent 
How to sort a file with huge volume of data given memory constraint ? 
2 
394 
Algorithms 
Groupon 
what is stable and unstable sorting? 
2 
239 
Algorithms  Sorting 

Explain a jigsaw puzzle ? 
2 
451 
Algorithms 
Moonfrog Labs 
Design a solution to find the most visited product in last 2 hours 
2 
737 
Algorithms  Data Structures  Dynamic Programming  System Design 
Microsoft 
In Algorithmic context how would you define book keeping operations? 
1 
496 
Algorithms 
Expedia 
What is DiffieHellman? 
1 
543 
Algorithms 
Expedia 
What is red black tree? 
1 
539 
Algorithms 
Expedia 
What is Floyd’s Cycle Detection? 
1 
539 
Algorithms 
Expedia 
What is the importance of Big O? 
2 
529 
Algorithms 
Expedia 
Which algorithms come under brute force, greedy and Divide and conquer? 
1 
1132 
Algorithms  Data Structures 
Hike 
What is the general strategy for Markov Algorithm? 
1 
568 
Algorithms 
TCS 
What are the arguments present in pattern matching algorithms? 
2 
482 
Algorithms 
TCS 
What is Euler’s totient function? 
2 
920 
Algorithms 
Cisco 
Design tab system 
6 
1683 
Algorithms  Data Structures  DesignPattern 
Morgan Stanley 
What data structure will you use to suggest friends in FB 
1 
1687 
Algorithms  Data Structures 
Morgan Stanley 
Data Structure for autosuggestion 
2 
1307 
Algorithms  Data Structures 
Morgan Stanley 
Difference between DP and recursion 
4 
1559 
Algorithms 
Morgan Stanley 
Which sorting algorithm has best case complexity O(nlogn) and worst case as O(n^2)? 
6 
1299 
Algorithms  Sorting 
Cisco 
Find Complexity of Algorithm? 
2 
611 
Algorithms 
Cisco 
Implementation of random number generator 
1 
692 
Algorithms 
Morgan Stanley 
Design Algorithm 
1 
624 
Algorithms 
Morgan Stanley 
How to store Ndimensional array in a database. 
1 
730 
Algorithms  DBMS 
Morgan Stanley 
Data Structure Design 
1 
631 
Algorithms  Data Structures 
Morgan Stanley 
Algorithm Related Question 
1 
646 
Algorithms 
Morgan Stanley 
Algorithm Question 
1 
620 
Algorithms 
Morgan Stanley 
Explain modified Bubble Sorting 
1 
1118 
Algorithms 
Morgan Stanley 
Explain Job Scheduling ? 
1 
683 
Algorithms 
Visa 
Given an integer n, how many BST’s can you make with n no of nodes? 
5 
1674 
Algorithms 
Amazon 
Check whether a grammar is ambiguous or not 
2 
1119 
Algorithms 
Amazon 
Find number of days between two given dates 
0 
342 
Algorithms 
Amazon 
Algorithm Design 
1 
578 
Algorithms 
MakeMyTrip 
What is 8 Queen problem ? 
1 
1004 
Algorithms  Data Structures  DesignPattern 
Oracle 
Formulate the angle between the hour hand and minute hand of the clock for any given time. 
2 
575 
Algorithms 
Directi 
Binary Tree with Three nodes a,b and c 
2 
683 
Algorithms 
Directi 
Algorithm design 
2 
575 
Algorithms 
Directi 
Design an algorithm 
1 
598 
Algorithms 
Directi 
Dynamic Programming 
2 
935 
Algorithms  Dynamic Programming 
Directi 
Algorithm Puzzle 
2 
701 
Algorithms 
Directi 
Write the implementation of String class. Implement any four methods of your choice. 
2 
1067 
Algorithms 
Microsoft 
Explain TRIE ? 
1 
786 
Algorithms 
Flipkart 
Find complexity of the code. 
12 
1044 
Algorithms 
Samsung 
Reverse the given string 1 
7 
1227 
Algorithms  Strings 
Samsung 
Time complexity Tower of Hanoi problem. 
2 
1376 
Algorithms 
Samsung 
C program to find direction of stack growth. 
1 
1446 
Algorithms  Data Structures 
Samsung 
What is time complexity 
6 
1696 
Algorithms 
Amazon 
Longest increasing subsequence 
1 
1353 
Algorithms  Dynamic Programming  Matrix 
Samsung 
Kandane’s Algorithm. 
2 
1237 
Algorithms  Dynamic Programming 
Samsung 
Fibonacci with recursion and its time complexity derivation. 
1 
1125 
Algorithms 
Qualcomm 
Integer kanpsack and fractional knapsack 
3 
1013 
Algorithms  Dynamic Programming  Greedy 
bhel  nhai 
Knap Sack Poblem 
7 
1838 
Algorithms  Dynamic Programming  Greedy 
bhel  nhai 
General steps in image processing 
1 
876 
Algorithms 
Qualcomm 
Swapping Numbers 
4 
793 
Algorithms 
Samsung 
Write a function to find optimal selection of packages from amazon warehouse. 
3 
1287 
Algorithms 
Amazon 
Which Sorting Algorithm is the fastest and why would you prefer it over others ? 
3 
1335 
Algorithms 
Amazon 
what is Face detection ? 
1 
667 
Algorithms 
Qualcomm 
what is Edge detection ? 
1 
619 
Algorithms 
Qualcomm 
Search and insert function in Binary search tree (BST) ? 
1 
658 
Algorithms  Data Structures 
Qualcomm 
Find the intersection of two linked list ? 
2 
959 
Algorithms  Data Structures 
Qualcomm  VMWare 
How to design a MR job to sort a very large dataset? 
1 
744 
Algorithms  DesignPattern 
Ola Cabs 
How to design rubik’s cube and its operation? 
0 
794 
Algorithms 
Ola Cabs 
How to reverse a sentence? 
3 
1064 
Algorithms 
Ola Cabs 
How to find union of all intervals? 
1 
737 
Algorithms 
Ola Cabs 
How pivot element in quick sort affects the timing complexity? 
1 
772 
Algorithms 
Qualcomm 
Expected Number of Trials 
0 
209 
Algorithms 

How to implement Kadane algorithm with start and end indices? 
0 
791 
Algorithms 
Ola Cabs 
Min Jumps III 
1 
241 
Algorithms  Data Structures  Range Minimum Query  SegmentTree 
Amazon  Facebook  Google  Microsoft 
Explain Binary search ? 
2 
602 
Algorithms 
Qualcomm 
Explain Depth First Search (DFS) ? 
1 
922 
Algorithms  Data Structures 
HCL  Qualcomm 
Explain BFS (Breadth First Search) ? 
1 
844 
Algorithms  Data Structures 
Qualcomm 
Find a triplet that sum to a given value 
12 
1807 
Algorithms  Arrays 
Samsung 
Sum of prime numbers 
7 
966 
Algorithms  Prime Number 
Samsung 
Power of 2 
2 
784 
Algorithms 
Samsung 
Dijkstra's Shortest path algorithm 
1 
1202 
Algorithms  Shortest Path 
Samsung 
Minimum Spanning Tree (MST) 
4 
1784 
Algorithms  Greedy 
Samsung 
Prim's Minimum Spanning Tree (MST) 
3 
1073 
Algorithms  Greedy 
Samsung 
There is file of million number you have to find out largest k element. 
2 
1155 
Algorithms  Data Structures 
Amazon 
Picks up a random song from the playlist and plays it. 
1 
1141 
Algorithms 
Amazon 
Data structure used for dictionary. 
1 
1614 
Algorithms  Data Structures 
Amazon 
Array Sorting 
10 
1864 
Algorithms  Arrays  Sorting 
Samsung 
Time Complexity 
9 
898 
Algorithms  Matrix 
Samsung 
Asymptotic notations 
1 
1047 
Algorithms 
Samsung 
Dijkstra's algorithm 
1 
849 
Algorithms 
Samsung 
Merge sort & Quick sort 
4 
1144 
Algorithms  Sorting 
Oracle  Samsung 
Heap sort & Merge sort 
1 
1219 
Algorithms 
Samsung 
Case Complexities 
4 
1159 
Algorithms  Sorting 
Flipkart 
Algorithm for Compaction 
1 
1214 
Algorithms  Operating Systems 
Adobe  Cisco 
Print the last K lines from a file 
3 
1502 
Algorithms 
Adobe  Microsoft 
Topological Sorting 
3 
2361 
Algorithms  Graph  Sorting 
Samsung 
Cycle detection in Graph 
5 
2127 
Algorithms  BFS  Data Structures  DFS  Graph 
Samsung 
BFS and DFS 
4 
1826 
Algorithms  BFS  Data Structures  DFS 
Oracle  Samsung 
Sort 1TB file 
3 
1455 
Algorithms  File Handling 
Samsung 
Sorting Techniques 
4 
942 
Algorithms 
Nvidia 