I. Written round
1. A program was given which creates node in a linked list and then frees the nodes.
Each node in Linked List contain the following :
a) integer value
b) a char pointer -> memory has been dynamically allocated during creation of new node
c) next pointer
In the free function they were freeing the node without freeing the dynamically allocated char pointer.
Task was to identify this memory leak and correct the code accordingly.
2. WAF to print all prime numbers in the range of N to M
3. WAF to search a string (might contain spaces) in another string and replace all occurances with a new string
a) Buffer space should not be used.
b) String should be replaced in place.
4. Design Air Traffic Control System
a) Landing time required for a plane = 60s
b) Only one run-way is present in airport
c) If run-way is blocked for a flight, return the waiting time and waiting slot number
d) Waiting queue is infinite
5. One thread is incrementing a variable. Another thread is printing the variable.
Synchronise these 2 threads using 2 locks.
II. F2F Interview
1. Questions on the projects done.
- Sling Media Interview Experience
- Sling Media Campus Recruitment Process and Interview Experience
- Amazon Interview Experience | Set 355 (For 1 Year Experienced)
- Amazon Interview Experience | Set 240 (1.5 Year Experienced for SDE-1)
- Amazon Interview Experience | Set 356 (For 6 Year Experienced)
- Samsung R&D, Bangalore Interview (1 Year Experienced)
- Amazon Interview Experience | 1 year Experienced for SDE-1
- OLA Interview Experience | Set 15 (1 Year Experienced for SDE1)
- Adobe Interview Experience | Set 23 (1 Year Experienced)
- Amazon Interview Experience |Set 225 (For 1 Year Experienced)
- Amazon Interview Experience | Set 232 (SDE-1 for 1 Year Experienced)
- Druva Interview Experience (1 Year Experienced)
- Amazon Interview Experience | Set 233 (1 Year Experienced for SDE-1)
- Lenskart 2+ year Experienced Interview Bangalore
- PayTM Interview Experience (1 Year Experienced)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.