There seems to be a new format recently. The reports I saw all had two LeetCode questions, but mine had one LeetCode question and one AI-assisted repository task.
- LeetCode. I was given two input arrays, l = [3, 5, 8] and r = [4, 6, 9], representing the left and right interval boundaries, and asked how many nonoverlapping intervals there were. For the example, the answer should be 3: [3,4], [5,6], and [8,9].
The main approach was similar to LeetCode's Merge Intervals, except that when I found an overlap, I chose the smaller of the two right boundaries.
- I was given a repository. The README roughly explained what the API was meant to do, but it had bugs and six failing test cases. The AI was not much use... I just followed the test-case error messages to see why things were failing. It was quite simple.
Discussion
Loading comments…