Problem 2634 · Easy

Filter Elements from Array

Keep the elements for which a test on the value and its index passes. The visual sample test keeps a value only when it exceeds its index.

Open the interactive visualisation