Microsoft logoMicrosoft
Coding·45 minMembers

Balanced Permutation Prefix Check

Members only

OA prompt also seen on Uber. For each k in [1..n], decide whether some contiguous subarray of permutation p contains exactly the multiset {1..k}. Return a binary string.

SWE
array
greedy
medium
oa
Frequency
Low
Last asked
2026-03-26
Stage
oa

Log in to continue reading the full content