Ad
  • Custom User Avatar

    This was quite a satisfying problem to work on.
    The trailing spaces once was a bit of an issue since it's not clearly visible...had to keep highliting the text to check them.
    The trick is to write down the number of '*' and ' ' in a given line wrt to 'n' on a piece of paper to see an emerging pattern.

  • Custom User Avatar

    This is quite educational