Zynga came to my campus for the software engineer position. First they conducted the Computer based test, where they asked 3 coding questions and 15 Aptitude questions. We were given 60 minutes to solve both coding and aptitude. The 3 coding questions were :
CPP
The interviewers were very friendly and were helping us out if stuck at some small or silly things.
For any more questions please ask in the comments section.
- Find first non repeating element in an array
- Pairwise swap elements of a linked list by changing links
- Zig Zag traversal of binary search tree.
- Implement git diff (basic implementation) efficiently
- What happens when you run
ls
.
- Mathematical Proof for why prime number program works even if you travel only until sqrt(n)
- Given a dictionary of words as a text file to you, Your input is a word return all the words from the dictionary whose prefix is the given word input. The design should be efficient in terms of time complexity. Basically he wanted me to develop auto complete.
- Design and Develop a web server(eg apache, nginx)
new->malloc(), mmap(), brk(), sbrk().