Ad
  • Custom User Avatar

    Looking at the solutions of mauro-1, t3l3f00n and ZED.CWT, I feel like an idiot...

  • Custom User Avatar

    There is no right or wrong, many different systems are used, even some that mix base 2 and base 10. Just pick your reference and make sure the description is clear.

  • Custom User Avatar

    i is used to denote the usage of 1024 as a base. These are read as kibibyte, mebibyte, an so forth. i.e.:

    1024byte = 1KiB
    1024KiB  = 1MiB
    1024MiB  = 1GiB
    etc...
    

    Uppercase B is used for bytes, whilst lowercase b is for bits.

  • Custom User Avatar

    But I will add this to the description, thanks for the feedback

  • Custom User Avatar

    I thought the same, but it turns out we're both wrong. (In this kata , formal values are used)

    Information from google:

  • Custom User Avatar

    Maybe you should write in the description that 1Kb = 1000b, 1Mb = 1000Kb, etc.? I'm asking that because usually one kilobyte equals 1024 bytes (althought formally it's 1000), so I got confused by the seemingly wrong tests lol

  • Custom User Avatar

    I understand you and appreciate your opinion, thanks for the feedback

  • Custom User Avatar

    Thanks, much better now.

    What I meant by duplicate in this case, is that the essense of the task has already been done. The essense of this task is parsing and converting between units, and there already are multiple kata that cover just that. The one I linked above is specifically about information units, but there's also more kata about converting between other units.

    For that reason, I'm not a fan of this kata. Other users might not feel the same as me though, so feel free to keep the kata public to collect more feedback.

  • Custom User Avatar

    "yet" scares me)

  • Custom User Avatar

    Thanks, now I don't have any issues yet :)

  • Custom User Avatar

    The voices of friends have been removed, now they do not affect the kata rating

  • Custom User Avatar

    Tests have been corrected, random tests have also been added

  • Custom User Avatar

    All the problems mentioned above have been solved

  • Custom User Avatar

    All the problems mentioned above (except, of course, a possible duplicate) have been solved

  • Custom User Avatar

    Thank you for such a detailed review, it will help me improve my kata.

    • I do not know what happened to the formatting of the text, but now I will fix it.
    • Sample tests will be added
    • The number of random tests will be reduced to 100
    • I saw the meaning in bigtest, but now I've rethought their meaning and decided to remove them
    • I assumed that a duplicate of such a kata was possible, but the one that you showed, although similar, is not a complete copy. Yes, the meaning is almost the same, but this one has a plot, and it's not the same as that kata. I would not like to delete this kata because of a kata that was accidentally discovered (I didn't know about it before). If it's not difficult for you, please find a specific text describing that the kata is a duplicate.
  • Loading more items...