Issue #2 of the Bugbash challenge is out! This time, there are 6 bugs to fix, available in 12 languages. Below is the Python version of the qualification challenge. Can you spot the mistake and patch it up?
def balanced_parentheses(self, str):
count = 0
for ch in str:
if ch == '(':
count += 1
elif ch == ')':
count -= 1
return count == 0
Put your debugging hat on and test your fix—along with 5 other bugs—right here:
Bugbash Issue #2
Faangshui Lifetime Access with 30% Off
The Lifetime Access to all Faangshui books and guides is on sale at a 30% discount. If you want unlimited access to the Foundations course, interactive lessons, AI feedback, and more for just $69.30, you can grab it here—offer ends soon!
Happy Bug Fixing!
Nurbo