Tokopedia Interview Experience | SDE-2
Round 1:
- Tell me about yourself.
- Calculate the factorial of 100.
- There is a sorted list of 0s and 1s of unknown size. You are given a function which returns element at position i. You need to find the index of the first 1 from the list.
- What is swapping?
- How would you find logs from 100 servers?
- Calculate the n-th leaf node of a n-way tree.
Round 2:
- Resume discussion.
- Reverse linked list in set of k.
- Find leaders in an array. Leader is defined as the element which is largest from its position till end.e.g. 5, 3, 10, 3, 1 leader null, null, 10, 3, 1
- Left view of a binary search tree.
- Write a method to max heapify.
- Implement LRU cache.
Round 3:
- Sort an array containing 0s, 1s and 2s.
- Design Whatsapp.
Contact Us