Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2634. Filter Elements from Array
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.