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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.