Identifying Magic Indexes in Arrays

# Introduction In computer science, a magic index (also known as a fixed point) of an array is an index i in the array such that its value is equal to i. In other words, the task is to find an element in the array such that its value is equal to its index.

|60 : 00

Click the virtual machine below to start practicing