• 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
Steadyx Avatar
Name:Edward
Clan:Founders & Coders
Skills:javascript, node.js, html5, css3
Member Since:Nov 2015
Last Seen:Jun 2025
Profiles:
Following:193
Followers:211
Allies:183
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (535)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Khan-ti
    • commented on "Remove First and Last Character" kata
    • 2 days ago

    Yes, you're right, then i rewrite my solution

  • Custom User Avatar
    • ejini战神
    • resolved a question on "Remove First and Last Character" kata
    • 28 days ago

    OP solved it, closing!

  • Custom User Avatar
    • Siemen_S
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    Yes, you're right, then i rewrite my solution. Thanks for help

  • Custom User Avatar
    • hobovsky
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    No, it is not "in an absolutely random time". It is always. For "abcb", your solution always return "cb" instead of "bc". Your solution has a bug, and handles some inputs incorrectly. You can also check "abc abc".

  • Custom User Avatar
    • Siemen_S
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    But in some moments, in an absolutly random time it may be s='cb'

  • Custom User Avatar
    • hobovsky
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    You need to check exactly, because for s="abcb", your solution does not return "bc" (as it should), but something else.

  • Custom User Avatar
    • hobovsky
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    What will your solution return for string s="abcb"?

  • Custom User Avatar
    • hobovsky
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    It is very difficult to tell why your code is wrong without seeing your code, or even without knowing what language you are trying to solve.

  • Custom User Avatar
    • Siemen_S
    • created a question for "Remove First and Last Character" kata
    • 2 months ago

    Hello everyone, I have a problem, i don't know why, but with true solution, each time, when i try to answer, randow number of tests be wrong.
    Like 25 true answer, 21 wrong OR 40 true, 6 wrong.
    And symbols in string replaced in random place, first and last places removed, but in some tests, like "khgjhbkjgjhb" answer is "hghhbkjgjj" but true answer is "hgjhbkjgjh".
    What's a problem?

  • Custom User Avatar
    • big_M
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    hi

  • Custom User Avatar
    • big_M
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    hello in the simple and random test there is a two-character test

  • Custom User Avatar
    • big_M
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    hello you don't need if
    kata accepts only return as a response, print makes no sense.
    the conditions explicitly say that you don't have to worry about the length of strings.

  • Custom User Avatar
    • abhinavrana-02
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    hi

  • Custom User Avatar
    • Hage-Tassang
    • commented on "Remove First and Last Character" kata
    • 2 months ago

    they say not to worry about undefined etc doesnt told us about if there are two char only string xd

  • Custom User Avatar
    • shubhumre111
    • commented on "Remove First and Last Character" kata
    • 3 months ago

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

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...