Capital One·Software Engineer·Online Assessment (OA)
- You're given a sequence of two operation types: one that places a wall at a specific index, and another that queries whether any wall exists within a given range. For each range query, output 1 if a wall exists in that range and 0 otherwise, then return all results as a list.
“My logic felt right.”