Design a queue-like data structure that moves the most recently used element to the end of the queue. Implement the MRUQueue class: MRUQueue(int n) constructs the MRUQueue with n elements: [1,2,3,...,n]. int fetch(int k) moves the kth element (1-indexed) to the end of the queue and returns it.
Interview questions [1]
Question 1
Design a queue-like data structure that moves the most recently used element to the end of the queue. Implement the MRUQueue class: MRUQueue(int n) constructs the MRUQueue with n elements: [1,2,3,...,n]. int fetch(int k) moves the kth element (1-indexed) to the end of the queue and returns it.
The interview experience is much better than I expected, the interviewer is nice and professional, arrived on time to the meeting. The question itself is not hard, but I was too nervous and end up run out of time, but it is a good learning experience
I applied online. The process took 2 months. I interviewed at Adobe in Feb 2021
Interview
It was good and straightforward. I had 7 interviews, some was how to solve an open ended problem and three coding. People behavior was good. All interviews were remote. Just the interview process takes about two months.
Interview questions [1]
Question 1
how do you design a system for recognizing contents with illegal contents?