• Custom User Avatar

    Almost. If itemCount could be zero, then that fails. Use

    return (itemCount + itemsPerPage - 1) % ItemsPerPage + 1;
    

    I don't remember if zero is allowed in the statement, but it should just be a habit in Java, C and C++ to avoid negative arguments to %.

  • Custom User Avatar

    duplicate issue below

  • Custom User Avatar

    Thanks, sorry for the delay.

  • Custom User Avatar

    quick fix. Can you check and confirm it's ok, plz?

  • Custom User Avatar

    My early days in java... x/
    I don't have time to handle this right now. If not done in 10h, someone poke at me on gitter.

  • Custom User Avatar

    To quote the top of this very page:

    Feature Requests

    To request or vote on new features please visit our Github Issues.

    NOTE

    The comments below used to be the mechanism for requesting new features. These are being left for now so that they can still be accessed, but any new ideas should be added to Github.

  • Custom User Avatar

    Nitpick: in Java, there cannot be 999980 different values of char ;)

  • Custom User Avatar

    corrected, I believe. Thx.

  • Custom User Avatar

    Katas are user made and there are no guidlines how description should look like unless it violates site-wide rules. Is posting a lone sentence at the bottom, pointing to a free resource which provides means to familiarize with the topic really an advertisement? Would that mean that each link to wikipedia also falls into this category, because after all they have banners asking for donations and maybe secretly sharing them with author? Strong, baseless words because you received a mild joke to your very serious boast.

  • Custom User Avatar

    Congratulations on your Java algorithm. It's better than my JavaScript one. That definitely couldn't solve all of 'em in time.

    Now please put that thing back in your trousers.