parent
1431a2552e
commit
040efef646
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ importance: 4
|
|||
|
||||
# Filter range
|
||||
|
||||
Write a function `filterRange(arr, a, b)` that gets an array `arr`, looks for elements between `a` and `b` in it and returns an array of them.
|
||||
Write a function `filterRange(arr, a, b)` that gets an array `arr`, looks for elements with values higher or equal to `a` and lower or equal to `b` and return a result as an array.
|
||||
|
||||
The function should not modify the array. It should return the new array.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue