Skip to content
Tape‑n‑Trace
PracticeSearch 26 tools

← All games

Balanced parentheses

Is L = { w ∈ {(,)}* : w is balanced } regular?

you attack · engine defends

Engine · move 1

The engine claims L = { w ∈ {(,)}* : w is balanced } is regular and announces a pumping length of n = 5. Choose a string in the language with at least 5 symbols.

You · move 2

w ∈ L, |w| ≥ 5