Uber Frontend Interview Experience
I recently came across an interesting frontend interview question asked at Uber, and I tried solving it. Sharing the problem and my solution in case it helps someone preparing for frontend interviews.
Frontend Interview — Shape Interaction
Uber provided a 2D array and asked to create a shape.
The shape consists of empty boxes, and each box can be turned into a filled box upon interaction.
The requirement was:
Click/interact with the boxes to fill them.
Once all boxes are filled, the boxes should be deselected in the order of selection.
I tried solving this question and recorded my approach and solution here:
Solution:
https://www.youtube.com/watch?v=DCoIeGt4g7M&list=PL4ruoTJ8LTT8250F2ZrYVmRO6o5gWZKpG

Discussions