-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Bug Report for https://neetcode.io/problems/python-resizable-list-part-1
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Challenge: pop_n(arr: List[int], n: int) -> List[int]. It should remove the last n elements from the list and return the resulting list. If n is greater than the length of the list, it should return an empty list.
Third test case print(pop_n([1, 2, 3, 4, 5], 5))
has n = length, but result shows an empty list, []. Should update description to be greater than or equal, as there's already a test case for the greater than scenario.
Metadata
Metadata
Assignees
Labels
No labels