Spot the bug: Valid Parentheses that accepts "(("

easy
Stack

Bug 3 of 12

This Python solution is supposed to do the following: Return True if every bracket in s is closed by the same type of bracket in the right order. It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ