Ad
  • Custom User Avatar

    thank you for the translation i have approved it. I only have experience in JavaScript so this is a big help. Thx

  • Custom User Avatar

    yeah will

  • Custom User Avatar

    The description does not clearly say that 0 is not a valid number to use. As long as you put it in the description it will be fine. Thx!

  • Custom User Avatar

    all fixed

  • Custom User Avatar

    this is a good solution and i will look into it but i am going to be taking a break for a few hours to go and do something

    is this what most higher level kyu's do?

  • Custom User Avatar

    ok thankyou for the math behind it. I never actually calculated it and just assumed that 10000 was a solid number because actual data is much larger. I have changed the values and now the smaller tests can have anywhere from 0 - 30 characters and the larger one will have anywhere from 0 - 1000 characters. Thank you for helping

  • Custom User Avatar

    I will try to look into making it have rules but i am not high honor or kyu so i dotn think i can look at the rules and test of the kata you have mentioned

  • Custom User Avatar

    So I had found a problem inside my lodash because it was only my first time. SO bassically all of the random arrays were only one character long and it is now fixed. It probably still not the best method of doing this but when i tried using the other methods it wouldn't work. I will still try to make it work using more lodash eventually but this fix should be a good temporary solution

  • Custom User Avatar

    The reson i am using an array is because i am a second year student but i believe that the first years could use this as training in python when i have a friend transfer it over. But the first years are not that adept yet so i am doing already in an array format ot make it a little easier for them. But it should still pose a challenge for them

  • Custom User Avatar

    my fixed tests do cover everything but there is always a way to hard code with fixed tests so that is why i made the data large but i could decrease the size of the small tests

  • Custom User Avatar

    the reason i am using such large data is because of the randomness. with small amounts of data there is a chance of not having any streaks and people being able to just pass through it with hard coding which i do not want to happen. Tahts why i did 10000 so there is less chance of that.

  • Custom User Avatar

    they way i have always coded has accounted for being able to take in arrays without data just in case so it doesnt break so i musnt have seen it because i had very little trouble making the solution

  • Custom User Avatar

    that does look cleaner. Im still a student so I am not that good at this rn so thx for the input

  • Custom User Avatar

    I just saw that while overlooking it. I dont know why mine always worked and your didnt but i have changed the lodash again

    this is the new way:

    const randomNum = _.random(100)
          const array = _.sample('RGB')
          const newArray = []
          newArray.push(array)
    
  • Custom User Avatar

    lol im like 99% sure im not using the lodash properly because it is my first time using it but i do knwo it works

  • Loading more items...