Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Do we really need to shorten the code to such an extent—to just 9 characters?

    The main purpose of programming is not just to run code, but to write it in a way that is clear, understandable, and maintainable. Excessive code golfing solely to meet an arbitrary length limit goes against best practices in clean coding.

    This type of challenge, known as Code Golf, can be a fun mental exercise and experiment, but it is not practical at all in the daily work of programmers. Companies and development teams prefer clear, well-documented code over short, obscure code.

    Encouraging clean and readable code writing is much more valuable for learning and skill development than forcing extreme code shortening that harms clarity.