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.
Hey Johan, I've added a message with the expected possible solutions on failed tests; check it out! I've also clarified the outer parentheses issue. Thanks!
Hi Johan, the test should work for any possible parenthesis ordering as long as it evaluates correctly. Could you provide an example of the issue?
You're absolutely right! Thank you for bringing it to my attention, it should be solved now :)
Hi there! Noted, I originally prescinded of random tests for this one but they have now been added.
Thank you both Unnamed & Voile for pointing it out. I've added it to the Kata's tests.
I've now modified the description to clarify on the input list.
Thanks!
Yeah, sounds good. Done!
I meant of a solution that would fail only in this case; just trying to understand how it can be an edge case :)
Changed the description; is it clearer now?
Hi there, thanks for the feedback. You are correct, it only checked that the returned expression equaled the sum of numbers in the list. However you still needed to solve the problem nevertheless, as it checked that impossible cases were detected and returned an empty string. Since there are several ways of writing the expression as a string I thought that would be an acceptable compromise for the tests, but I’ve modified them and now they check that any of all the possible solutions is returned (I’ve used St3f4n implementation). I’ve kept the example tests cases as they were, though :)
Could you give an example?
This. Is. Awesome. I never knew I needed this site so much. Thank you for this.