Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It checks if count is equal to 0 or not and then return true or false.
If count is superior to 0 at the end, it means there are too many parentheses.
If n equals 0, then there are an equal amount of opening and closing parentheses. Otherwise there are more of on or the other and the parens wouldn't be valid. It checks if the order is right with the if statement in the loop (n < 0)
Not a suggestion.
This comment is hidden because it contains spoiler information about the solution
why will you return " return n== 0 " ?? i don't understand.
This comment is hidden because it contains spoiler information about the solution