Can you beat Python's character count while staying readable? Go!

3 959
18.6
Следующее
Популярные
Опубликовано 2 марта 2026, 14:00
Here’s a classic interview question, reframed as a code golf challenge.Write a function that checks whether parentheses, square brackets, and curly brackets are properly balanced. It must correctly handle nested cases, mismatches, and unfinished input. A compact Python solution comes in at 201 characters using a stack. Can you beat that character count? Share your shortest solution!

Subscribe to Google for Developers → goo.gle/developers

Speakers: Christine Rafla
автотехномузыкадетское