Available question text
Implement a custom filter that iterates an integer array and returns a new array containing only the elements for which the provided predicate fn(element, index) evaluates to a truthy value. Do this without using the built-in Array.filter and handle predicates that may accept either the element alone or both element and its index.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2634. Filter Elements from Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source