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 very much for pointing it to me! It's very helpful
Use a copy (read the Ruby docs about how to make one) so your function doesn't mutate it and the expected result is right.
The control function use the input values your function left, so after you removed the chars it returns false instead of true.
This comment is hidden because it contains spoiler information about the solution
Strings are mutable in Ruby, if your code fails the random tests I'm almost sure, you're mutating the input values.
Hi, Im working on Ruby, but fails on random examples. It seems these are not right, but maybe I'm wrong:
the test passing:
Testing for pehbtflhefipqh and ep
Test Passed: Value == true
Test I'm failing:
Testing for poqmqvkoubgyva and qompkvq
It should work with random inputs too - Expected: false, instead got: true
According to my understanding, I can definitely create qompkvq using characters in poqmqvkoubgyva. Could you please confirm the test is correct and the failed example should actually return false?
Many thanks!