โ† Arcesium questions

Recursively remove 1s sandwiched between -1s

Filed under Arcesium

Given an array containing only 1s and -1s, repeatedly remove all occurrences of 1 that are immediately flanked by -1 on both sides until no such 1s remain.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Arcesium questions

Collected from public candidate posts and coding forums. Updated Nov 2026.