Round 1
Questions: Implement a class with 3 functions for a bookshelf:
- a)
insert(fromindex, toindex, List)
- b)
remove(fromindex, toindex)
(inclusive of both fromindex, toindex) - c)
move(fromindex, toindex, size)
(inclusive of both fromindex, toindex)
The question was similar to this Leetcode discussion but worded differently and included more functions.
Candidate's Approach
- Solved functions a and b successfully.
- Had less than 10 minutes to work on function c.
- Missed an edge case in function c and ultimately failed to complete it.
Interviewer's Feedback
No feedback provided.