Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ importance: 4

# Filter range "in place"

Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are between `a` and `b`. The test is: `a ≤ arr[i] ≤ b`.
Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are in the inclusive range from `a` to `b`. The test is: `a ≤ arr[i] ≤ b`.

The function should only modify the array. It should not return anything.

Expand Down