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.
Thank you for your help.
The test want us to written 'true' for empty strings. Thank you for your suggestion, really appreciate it.
Use this:
console.log("input value is: '" + parens + "'");
I console.log again but the test clearly does not show in which input as argument my code failed...
Why open two issues? Print something besides the input.
That's not the test your code fails.
This comment is hidden because it contains spoiler information about the solution
While attempting my code all tests are evaluating to true, except one. When I console.log the argumnents which are provided to the program, the test wants the code to return 'true' for parenthesis "validParentheses('())')".
Print something besides the input value, that's not the input of the test your code is failing. BTW I moved the test you're failing to the first group, because it expects
true
.should detect invalid parentheses
Log
)
Test Failed
Log
Expected
: false
to equal
: true
Why test want true in case ")"
sry, i'm was wrong.
You're passing only the first 2 tests, but there are more hidden tests when you hit 'Attempt'.
Are you returning
nil
for empty array ? It should be []Also plz reply to your previous post, don't create new ones.
Expected
<[]string | len:0, cap:0>: nil
to equal
<[]string | len:0, cap:0>: []
I'am run basic tests, its failed, but in goPlayground tests pass. https://go2goplay.golang.org/p/bU57rIF9JMh
Read these logs as: expected some array (your output) to equal expected output.
Clearly, your output isn't sorted.
Loading more items...