• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
teochewthunder Avatar
Name:Roger Tan
Clan:Unknown
Member Since:Oct 2015
Last Seen:Apr 2016
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (7)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • BigQiu
    • commented on "Complete The Pattern #2" kata
    • 10 years ago

    remove the last "\n".your output is "sb.toString()"= "54321\n5432\n543\n54\n5\n"

  • Custom User Avatar
    • GiacomoSorbi
    • commented on "Same Array?" kata
    • 10 years ago

    I started in your same shoes, but luckily here was (and still is!) an awesome place to practice and learn :)

  • Custom User Avatar
    • teochewthunder
    • commented on "Same Array?" kata
    • 10 years ago

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

  • Custom User Avatar
    • teochewthunder
    • commented on "Complete The Pattern #2" kata
    • 10 years ago

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

  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #2" kata
    • 10 years ago

    Thanks CM for replying ^_^

  • Custom User Avatar
    • CrazyMerlyn
    • commented on "Complete The Pattern #2" kata
    • 10 years ago

    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.

  • Custom User Avatar
    • teochewthunder
    • commented on "Complete The Pattern #2" kata
    • 10 years ago

    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?

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...