Ad
  • Default User Avatar
    • omg, somehow i never thought of declaring the solutions' functions static in my C katas and relied on stupid obfuscation instead. gona change that right away
    • i'm aware that RAND_MAX != UINT_MAX, i'm just using unsigned as a hint for the codewarrior because the description says that integers will always be positive

    thanks to you two :)

  • Default User Avatar

    Thank you so much! after some looking around and testing I was able to get it and I am very surprised at that too. Thanks again!

  • Custom User Avatar

    i dont know python but i can say how i started js. learn data structures started by doing simple thing like manipulating an array or object in functions. and start your 8th 7th kyu challenges. i'm still a begginer though so i hope it helps

  • Custom User Avatar

    Hey there,
    I'm not sure about the material but I hope the following steps will help you go through this kata.
    You are give an integer or you can say a number in this kata.

    1. Try to figure out how you can - Convert an integer to its binary form in python
    2. Also try figuring out - How to reverse a string/number in python
    3. I am sure after this you will know how to go through the kata.

    P.S - The figuring out part can be as simple as a google search 😉. Make sure you understand the concept and then try attempting the kata or it will be of no use.

  • Default User Avatar

    I am new and needed help. Is there any material that would help me with this task? I use python

  • Custom User Avatar

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

  • Custom User Avatar

    i will try to create an if statment for 32 bit

  • Custom User Avatar

    It fails only this sample test, but will probably fail more test cases from full test suite.
    Yes, your solution has an error.
    Did you try to recreate the test case for Number.MAX_SAFE_INTEGER locally and see how it works and why it might fail?

  • Custom User Avatar

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

  • Custom User Avatar

    Did you try your solution with Number.MAX_SAFE_INTEGER?

    Your solution fails sample test for Number.MAX_SAFE_INTEGER, or actually for any number lager than 32 bytes.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    It's about descending order, not reverse order. 2110 > 1201

  • Loading more items...