Binary Search

Find the 1-based index of a target in a sorted array.

Topics: algorithms, arrays, loops. Solve this Luau challenge inside Luablox with visible examples and hidden tests.

Browse all Luau problems

Read a theory lesson