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 really enjoyed this kata, but i would suggest improving the sample tests to include decoding a factorial base number that has a letter in it. With the current sample tests I could completely ignore the letters and still pass the samples but fail the full tests.
okay, now i check the structure of the tree along with the result of the traverse method. This is still not perfect but is it better?
for example this kata prevents users from using any
eval
related functions and I want to do the same with mine but with any sorting related functionThanks for the feedback, i am trying to prevent users from extending lists and from using any built in sorting functions but im still learning so this will be improved. I know there is way to test if a certain function is used i just don't know exactly how, I am still trying to figure it out.
Now I test that the BST has a left, a right, and all the necessary methods
I want to prevent uses from using the sorted() method but I don't know how
you're right, i just noticed that, i'll fix it
from_array
containsinsert
, if insert doesn't exist it will fail, if insert doesn't work properly the traverse will return the wrong answer.Its not the best idea but I think it can work. I know there is a way to prevent users from using certain methods like sorted() but I don't know how to do that.
@FArekkusu I don't know how to enforce, pls link to how i could do that. I googled it but i couldn't find out how
@FArekkusu what do you mean, by "no random tests". do you mean I don't have them because I do have random tests in the hidden test cases, it randomly shuffles an array and tests on that array, or do you mean there shouldn't be random tests in the samples, because those are technically not random
@FArekkusu what do you mean, how could I fix it?