{"id":"apples-mutates-input","text":"`maxNumberOfApples` mutates the caller's list via `weight.sort()` rather than using `sorted()`, so callers cannot rely on original order being preserved.","truth_value":"IN","source":"entries/2026/06/06/how-many-apples-can-you-put-into-the-basket-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"apples-mutates-input","truth_value":"IN","reason":"premise"}]}}