← The arcade

Algorithm Lab · difficulty 2 of 3

Bracket balancer ⚖️

The classic editor check. Report the position of the first bracket that does not match, or the one left open at the end.

This one is part of Pro. Plenty of arcade challenges are free to play right now.

Skills: functions, lists, strings

Open the arcade