Interview Questions
1st interview Sr SDE
class Node{ int nodeId,int nodeParentId} is given.
Input : List<Node>
Output:Tree
2nd Interview SDE
Design TIC TAC TOE problem
3rd Interview SDE II Lunch interview
1.Move all zeros to beginning input {1,2,3,0,0,0,4,5} output {0,0,0,1,2,3,4,5}
2. Given an int[] multiply all numbers except index I/p {1,2,3,4} O/P {24,12,8,6}
4th Interview SDE II
Log file contains UserId.Every day has new log file.Given range of n days find top 10 users?
5th Interview Director tech
Asked two puzzles
1.3 bulbs and switch board outside room.Find which switch belongs to which bulb in one pass
2.10 Bags with 100 gold coins each. Each coin weighs 10 gms in 9 bags and each coin weighs 9 gms in one bag find out which bag has coins of 9 gms in one weight?