Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    you guys should remove this kata it broken i tried two solutions one in arrow fuctions the other with for loops (const getDivisorsCnt = (n) => Array.from({ length: n }, (_, i) => n % (i + 1) === 0).filter(Boolean).length;
    )

    (function getDivisorsCnt(n){
    let result = 0
    for (let i = n; i > 0; i-- ){
    if (n % i == 0){
    result++
    }
    }
    return result
    })

    dosent work for either and these are litterally the only way to solve this problem im having the same max buffer problem as everyone else its not a code problem its a kata problem please fix this thank you

  • Default User Avatar

    lmfaooooooooooooooooooooooooooooo

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    i was so confused when i didnt put the const before invert because u usally dont have too lol, i was searching for help n now i wanna kys XD it was really tht simple just the const SMH

  • Default User Avatar

    this is how i did mine i forgot the comma between the } and the ( and thought the codewars gods let me down but it turns out im just retarted XD

  • Default User Avatar
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    kayleighWasTaken thank you, so i was supposed to make it return a value with no input just a random number?

  • Default User Avatar

    nah didnt show evenorodd on mine could be mistaken though i was bashing my head into a wall for a while everythings hazy at the moment

  • Default User Avatar

    yeah i checked the link thank you now ik but it still dosnt explain why when i put in my code it said it was wrong and also gave me no bug fixes like it shows in the examples the test code also said nothing about an even or odd fucntion its still very miss leading how can i do it there exact way if i the way they want me to model after isnt even anything similar to the final result lol its like a bait n switch

  • Default User Avatar

    hobovsky i get tht but how does my code not fit into the parameters? because i didnt know there was a even or odd funtion ig thats idk i never seen an evenorOdd funtion before even a little hit would have been nice but i see your point for sure

  • Default User Avatar

    for some reason it only lets me relly to you b1ts but how am i even supposed to know what a kata is i never came across that in java scrpit and i couldnt use regular prompt because it kept saying funtion not defined the template had mad extra irlavent code that noone who solved it used lol what are u saying right now and tes i bypassed the challenge because it was broken for me apparently because how woukd my code work other wise?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution