Balanced Numbers in a Permutation

Problem overview from a real Uber interview:

Given an array of length n, output a binary string for this Uber problem showing whether elements 1 to k form a contiguous subarray for every k up to n.

Check more interview questions and experiences about Uber

Please log in to view interview details