6 kyu

Integer reduction

189 of 622KenKamau
Description
Loading description...
Algorithms
  • Please sign in or sign up to leave a comment.
  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • Darshan97 Avatar

    You could specify that there is no requirment for perfomance :p

  • His_Dudeness Avatar

    This comment has been hidden.

  • His_Dudeness Avatar

    Is there some bug in attempt? My code does exactly what instruction say, and pass all 8 basic tests, but I get a random tests error. What is wrong? Can someone help me?

    • siebenschlaefer Avatar

      General advice:

      • Get the parameters of the failed test. AFAIK every programming language here at CodeWars has some way to print something.
      • Get your result.
      • Re-read the kata's description. There are a lot of issues where the user missed something in the description.
      • Check your result manually (if possible). There are quite a few issues where the user's result was just wrong.
      • Check that kata's discourse section if this issue has already been reported.
      • Add a comment.
        • State your programming language and version as shown at the top of the page.
        • State the parameters of the failed test, your result and the expected result (if available).
        • Add your solution code surrounded by a line with just three backticks (```) and mark the comment as "having spoiler content".
        • Label the comment as "Issue".
      • Give the author a few days to respond.
    • His_Dudeness Avatar

      This comment has been hidden.

    • KenKamau Avatar

      This is a training site. And as such, I cannot comment on your code directly, until I'm satified that you have tried everything else. Try printing the output every step of the way, and see where you are going wrong. You could even insert a print statement in your submission code to see what is being tested. Please also note that this Kata has been completed 24/48 times in Python.

    • His_Dudeness Avatar

      Thank you for reply. I finally find cause of error, and gonna continue battle.)

  • Kishor Avatar

    6 kyu for this question is insane!!!!!!!!! 5 kyu- understandable It's a fun problem though!!

  • Blind4Basics Avatar

    Hi,

    You should add to the description that there is no requierment for performances. Because this kata will end up to 6 kyu (about that, guys... Ranking this 7 kyu is just crazy....) but the better (complicate) approach is not requiered (and would not worth only 6 kyu!).

    EDIT: to anyone: what's happening lately with conditions for approval of the katas? This one is approvable with only 3 satisfaction rates and 5 completions. Rules have changed again? IMO, this leads to too short beta process.

    • smile67 Avatar

      Ok... it's approved as 6kyu. My rating was 7kyu and i was not alone (~2 minutes for coding?)... But average between 6 and 7, so ok for me;-)...