Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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 function

  • Custom User Avatar

    Thanks 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.

  • Custom User Avatar

    Now I test that the BST has a left, a right, and all the necessary methods

  • Custom User Avatar

    I want to prevent uses from using the sorted() method but I don't know how

  • Custom User Avatar

    you're right, i just noticed that, i'll fix it

  • Custom User Avatar

    from_array contains insert, if insert doesn't exist it will fail, if insert doesn't work properly the traverse will return the wrong answer.

  • Custom User Avatar

    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.

  • Custom User Avatar

    @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

  • Custom User Avatar

    @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

  • Custom User Avatar

    @FArekkusu what do you mean, how could I fix it?