Status: IN
`maxNumberOfApples` mutates the caller's list via `weight.sort()` rather than using `sorted()`, so callers cannot rely on original order being preserved.
Source: entries/2026/06/06/how-many-apples-can-you-put-into-the-basket-solution.md
JSON