DEV Community

Discussion on: Daily Challenge #51 - Valid Curly Braces

Collapse
 
oscherler profile image
Olivier “Ölbaum” Scherler

With the examples given, this challenge is identical to Challenge 29: Xs and Os, because counting the braces suffice to get the answer.

If you add areCurlyBracesMatched("}{"), false;, though, it’s different.

I think it’s a pity that the examples for a lot of these challenges are missing some important cases that would help when the explanation is not completely clear.