remove the last "\n".your output is "sb.toString()"= "54321\n5432\n543\n54\n5\n"
I started in your same shoes, but luckily here was (and still is!) an awesome place to practice and learn :)
This comment is hidden because it contains spoiler information about the solution
Thanks CM for replying ^_^
Most probably a whitespace problem. It's difficult to see them in browsers. Make sure you are not printing any extra newline chars before or at the end of pattern.
I don't get it.
Expected: 54321 5432 543 54 5, instead got: 54321 5432 543 54 5
I am returning the output. What's wrong?
Loading collection data...
remove the last "\n".your output is "sb.toString()"= "54321\n5432\n543\n54\n5\n"
I started in your same shoes, but luckily here was (and still is!) an awesome place to practice and learn :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks CM for replying ^_^
Most probably a whitespace problem. It's difficult to see them in browsers.
Make sure you are not printing any extra newline chars before or at the end of pattern.
I don't get it.
Expected:
54321
5432
543
54
5, instead got:
54321
5432
543
54
5
I am returning the output. What's wrong?