• 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
mcelearr Avatar
Name:Rory McElearney
Clan:Founders & Coders
Member Since:Nov 2015
Last Seen:Feb 2025
Profiles:
Following:177
Followers:168
Allies:158
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (120)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Just4FunCoder
    • resolved an issue on "Sports league table - help your local team!" kata
    • 4 months ago

    Enabled in this fork

  • Custom User Avatar
    • bayubahe7
    • commented on "Keep up the hoop" javascript solution
    • 10 months ago

    good shot

  • Custom User Avatar
    • kysper50@gmail.com
    • commented on "Remove First and Last Character" javascript solution
    • 10 months ago

    It wants the first character removed as well, if you set it to 0 it will also grab that character.

  • Custom User Avatar
    • adrianmacz
    • commented on "Remove First and Last Character" javascript solution
    • 12 months ago

    Just curious why is it 1 instead for 0? Isn't the first letter placed at 0?

  • Custom User Avatar
    • selsadan
    • commented on "Remove First and Last Character" javascript solution
    • 13 months ago

    Great!

  • Custom User Avatar
    • maksymczech
    • commented on "Tube strike options calculator" kata
    • 2 years ago

    Terrible

  • Custom User Avatar
    • hobovsky
    • commented on "Tube strike options calculator" kata
    • 2 years ago

    Done for Python.

  • Custom User Avatar
    • Voile
    • created an issue for "Quartile methods" kata
    • 2 years ago

    Floating point errors:

    [ 7.6, 1.15, 8.06, 6.02, 6.27, 1.1 ]
    Random test for median failed - Expected: 6.15, instead got: 6.14
    
  • Custom User Avatar
    • Volvidem
    • commented on "Remove First and Last Character" javascript solution
    • 3 years ago

    This is because substr prints the number of characters after the starting index. Had you started from 0, you would just need to subtract 1 to exclude the last element.
    But since you have started from 1, it has shifted the range by 1, which means the last character is included again. So you need to subtract 2.

  • Custom User Avatar
    • rsschool_54c27789e1e0ea47
    • commented on "Remove First and Last Character" javascript solution
    • 3 years ago

    According to documentation, the last index is the index of the first character to exclude, rather than the last one to include

  • Custom User Avatar
    • Bravono
    • commented on "Remove First and Last Character" javascript solution
    • 3 years ago

    Have you gotten an answer yet?

  • Custom User Avatar
    • Bravono
    • commented on "Remove First and Last Character" javascript solution
    • 3 years ago

    This make sense. You are getting the strings you want directly.

  • Custom User Avatar
    • ejini战神
    • created an issue for "Sports league table - help your local team!" kata
    • 3 years ago

    Description should be language-agnostic

    Also, The global array in ruby should be $league_table

  • Custom User Avatar
    • ejini战神
    • created an issue for "Sports league table - help your local team!" kata
    • 3 years ago

    Inconsistency among languages:

    • JS did not expect solvers to modify original array whereas Python & Ruby require input modification (Either modify JS or change the requirements of the kata to not modify aray)
  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Sports league table - help your local team!" kata
    • 3 years ago

    Reraised as issue

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...