• Custom User Avatar

    I am not sure, if isalnum() is faster, but the code would be much shorter and more readable. But where is the fun. ;)

  • Custom User Avatar

    I didn't even think to use continue statements, so useful.

    Is there a time complexity difference between using the if statement here vs. just using the statements in ctype.h? (just a thought)

  • Custom User Avatar

    C++ seems have the same problem.

  • Custom User Avatar

    Fixed

  • Custom User Avatar

    @Toideng it did receive two size arguments cuz the author's solution was adapted to solve m x n
    And usually that is the case with matrixes.

  • Custom User Avatar

    Changed paramerer names to be clearer. Unfortunately, the outsz setting has to remain because removing it will invalidate all the solutions.

  • Custom User Avatar

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

  • Custom User Avatar

    In C, type of arguments should probably be int64_t or uint64_t since their values are said to reach as high as ~2E+14, but int can only contain ~2E+9.