Difference between BFS abd DFS. 
2 
33 
Algorithms  bfs  dfs  Graph  Tree 
Thoughtworks 
How to perform left rotation in RedBlack tree. 
0 
25 
Algorithms 

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

Probability analysis and randomized algorithm 
1 
33 
Algorithms 

complexity of pow(a,b) 
0 
26 
Algorithms 

Largest of three integers without comparison operators 
1 
36 
Algorithms 
Qualcomm 
Algorithm to compute a list of reachable positions 
0 
53 
Algorithms  Java 

What is merge sorting? 
2 
418 
Algorithms 
Practo 
What is a backtracking algorithm? 
2 
344 
Algorithms 
Practo 
Stock market prediction 
1 
287 
Algorithms 
One97 
Find maximum sum 
2 
393 
Algorithms 
OlaCabs 
Find Min element from stack with O(1). 
2 
432 
Algorithms  DataStructure 
OlaCabs 
Write automation script for testing. 
0 
278 
Algorithms  programminglanguage 
OlaCabs 
Write pseudo code to show that two strings are anagrams of each other. 
1 
260 
Algorithms 
OlaCabs 
Explain the depth of recursion? 
1 
331 
Algorithms 
Intel 
Define flow chart 
1 
254 
Algorithms 
CGI 
Define algorithm 
6 
305 
Algorithms 
CGI 
Sort an alphanumeric array into separate arrays. 
2 
253 
Algorithms 
CGI 
Write the code for selection sort. 
3 
251 
Algorithms 
CGI 
What is DSA? 
1 
289 
Algorithms 
CGI 
Write a code to multiply a number with 3.5 without using *,/,% operator? 
2 
271 
Algorithms 
Aricent 
How to sort a file with huge volume of data given memory constraint ? 
2 
218 
Algorithms 
Groupon 
Explain a jigsaw puzzle ? 
2 
266 
Algorithms 
Moonfrog Labs 
In Algorithmic context how would you define book keeping operations? 
1 
262 
Algorithms 
Expedia 
What is DiffieHellman? 
1 
285 
Algorithms 
Expedia 
What is red black tree? 
1 
312 
Algorithms 
Expedia 
What is Floyd’s Cycle Detection? 
1 
284 
Algorithms 
Expedia 
What is the importance of Big O? 
2 
278 
Algorithms 
Expedia 
Which algorithms come under brute force, greedy and Divide and conquer? 
1 
566 
Algorithms  DataStructure 
Hike 
What is the general strategy for Markov Algorithm? 
1 
316 
Algorithms 
TCS 
What are the arguments present in pattern matching algorithms? 
1 
299 
Algorithms 
TCS 
What is Euler’s totient function? 
2 
559 
Algorithms 
Cisco 
Design tab system 
5 
943 
Algorithms  DataStructure  DesignPattern 
MorganStanley 
What data structure will you use to suggest friends in FB 
1 
1003 
Algorithms  DataStructure 
MorganStanley 
Data Structure for autosuggestion 
2 
779 
Algorithms  DataStructure 
MorganStanley 
Difference between DP and recursion 
3 
935 
Algorithms 
MorganStanley 
Which sorting algorithm has best case complexity O(nlogn) and worst case as O(n^2)? 
6 
729 
Algorithms  Sorting 
Cisco 
Find Complexity of Algorithm? 
1 
376 
Algorithms 
Cisco 
Implementation of random number generator 
1 
418 
Algorithms 
MorganStanley 
Design Algorithm 
1 
370 
Algorithms 
MorganStanley 
How to store Ndimensional array in a database. 
1 
447 
Algorithms  DBMS 
MorganStanley 
Data Structure Design 
1 
386 
Algorithms  DataStructure 
MorganStanley 
Algorithm Related Question 
1 
392 
Algorithms 
MorganStanley 
Algorithm Question 
1 
393 
Algorithms 
MorganStanley 
Explain modified Bubble Sorting 
1 
505 
Algorithms 
MorganStanley 
Explain Job Scheduling ? 
1 
422 
Algorithms 
Visa 
Given an integer n, how many BST’s can you make with n no of nodes? 
5 
1276 
Algorithms 
Amazon 
Check whether a grammar is ambiguous or not 
2 
729 
Algorithms 
Amazon 
Algorithm Design 
1 
332 
Algorithms 
MakeMyTrip 
What is 8 Queen problem ? 
1 
654 
Algorithms  DataStructure  DesignPattern 
Oracle 
Formulate the angle between the hour hand and minute hand of the clock for any given time. 
2 
367 
Algorithms 
Directi 
Binary Tree with Three nodes a,b and c 
2 
421 
Algorithms 
Directi 
Algorithm design 
2 
377 
Algorithms 
Directi 
Design an algorithm 
1 
378 
Algorithms 
Directi 
Dynamic Programming 
2 
603 
Algorithms  DynamicProgramming 
Directi 
Algorithm Puzzle 
2 
452 
Algorithms 
Directi 
Write the implementation of String class. Implement any four methods of your choice. 
1 
662 
Algorithms 
Microsoft 
Explain TRIE ? 
1 
518 
Algorithms 
Flipkart 
Find complexity of the code. 
12 
716 
Algorithms 
Samsung 
Reverse the given string 1 
7 
857 
Algorithms  String 
Samsung 
Time complexity Tower of Hanoi problem. 
2 
782 
Algorithms 
Samsung 
C program to find direction of stack growth. 
1 
914 
Algorithms  DataStructure 
Samsung 
What is time complexity 
4 
1220 
Algorithms 
Amazon 
Longest increasing subsequence 
1 
898 
2D Array  Algorithms  DynamicProgramming 
Samsung 
Kandane’s Algorithm. 
2 
783 
Algorithms  DynamicProgramming 
Samsung 
Fibonacci with recursion and its time complexity derivation. 
1 
838 
Algorithms 
Qualcomm 
Integer kanpsack and fractional knapsack 
3 
651 
Algorithms  DynamicProgramming  GreedyAlgorithm 
bhel  nhai 
Knap Sack Poblem 
6 
1179 
Algorithms  DynamicProgramming  GreedyAlgorithm 
bhel  nhai 
General steps in image processing 
1 
527 
Algorithms 
Qualcomm 
Swapping Numbers 
4 
505 
Algorithms 
Samsung 
Write a function to find optimal selection of packages from amazon warehouse. 
3 
896 
Algorithms 
Amazon 
Which Sorting Algorithm is the fastest and why would you prefer it over others ? 
3 
928 
Algorithms 
Amazon 
what is Face detection ? 
1 
442 
Algorithms 
Qualcomm 
what is Edge detection ? 
1 
414 
Algorithms 
Qualcomm 
Search and insert function in Binary search tree (BST) ? 
1 
422 
Algorithms  DataStructure 
Qualcomm 
Find the intersection of two linked list ? 
2 
589 
Algorithms  DataStructure 
Qualcomm  VMWare 
How to design a MR job to sort a very large dataset? 
1 
511 
Algorithms  DesignPattern 
OlaCabs 
How to design rubik’s cube and its operation? 
0 
578 
Algorithms 
OlaCabs 
How to reverse a sentence? 
3 
683 
Algorithms 
OlaCabs 
How to find union of all intervals? 
1 
477 
Algorithms 
OlaCabs 
How pivot element in quick sort affects the timing complexity? 
1 
527 
Algorithms 
Qualcomm 
How to implement Kadane algorithm with start and end indices? 
0 
455 
Algorithms  kadane 
OlaCabs 
Explain Binary search ? 
1 
402 
Algorithms 
Qualcomm 
Explain Depth First Search (DFS) ? 
1 
597 
Algorithms  DataStructure 
HCL  Qualcomm 
Explain BFS (Breadth First Search) ? 
1 
484 
Algorithms  DataStructure 
Qualcomm 
Find a triplet that sum to a given value 
12 
1237 
Algorithms  Array 
Samsung 
Sum of prime numbers 
6 
594 
Algorithms  Prime 
Samsung 
Power of 2 
2 
505 
Algorithms 
Samsung 
Dijkstra's Shortest path algorithm 
1 
727 
Algorithms  shortestpath 
Samsung 
Minimum Spanning Tree (MST) 
3 
1345 
Algorithms  GreedyAlgorithm 
Samsung 
Prim's Minimum Spanning Tree (MST) 
2 
680 
Algorithms  GreedyAlgorithm 
Samsung 
There is file of million number you have to find out largest k element. 
2 
799 
Algorithms  DataStructure 
Amazon 
Picks up a random song from the playlist and plays it. 
1 
747 
Algorithms 
Amazon 
Data structure used for dictionary. 
1 
1154 
Algorithms  DataStructure 
Amazon 
Array Sorting 
10 
1287 
Algorithms  Array  Sorting 
Samsung 
Time Complexity 
8 
576 
2D Array  Algorithms 
Samsung 
Asymptotic notations 
1 
650 
Algorithms 
Samsung 
Dijkstra's algorithm 
1 
531 
Algorithms 
Samsung 
Merge sort & Quick sort 
4 
773 
Algorithms  Sorting 
Oracle  Samsung 
Heap sort & Merge sort 
1 
627 
Algorithms 
Samsung 
Case Complexities 
4 
750 
Algorithms  Sorting 
Flipkart 
Algorithm for Compaction 
0 
803 
Algorithms  OperatingSystem 
Adobe  Cisco 
Print the last K lines from a file 
2 
1046 
Algorithms 
Adobe  Microsoft 
Topological Sorting 
3 
1841 
Algorithms  Graph  Sorting 
Samsung 
Cycle detection in Graph 
4 
1526 
Algorithms  bfs  DataStructure  dfs  graph 
Samsung 
BFS and DFS 
3 
1086 
Algorithms  bfs  DataStructure  dfs 
Oracle  Samsung 
Sort 1TB file 
3 
1035 
Algorithms  File Handling 
Samsung 
Sorting Techniques 
3 
684 
Algorithms 
Nvidia 