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.
i had the same idea except i pushed directions to new array instead of removing them from original and that didn't work right =/
error is just a hair away
Random test cases not going through on C++ but it's probably just because of my code. Off to next one.
bruh
on decrypt the test is expecting " at the end of the return string? C++
Expected: equal to "This is a test!"
Actual: "This is a test!
Edit. Got it working with different solution.
If the take in parameter is marked '&str' (as it is in the assignment. '&' is removed in this solution) you are supposed to use the original string directly through reference. This reduces memory usage and increases speed =)
Anyway this is how i see it. Correct if am wrong.
removing stuff from the assignment is bad practice imo
the str is passed as reference
otherwise well done and thank you for showing this
:´D
i prefer this approach
you right my bad !
Tests must be broken or something: climbing is actually > volcano.
On attempt it expects to return quotation marks as well: expected "this", actually got "this ...
But i have seen this completed by more experienced programmer so it should be possible.
On C++.
awesome
C++ test strings output correct on vscode but not here :E