• 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
mdsmithson Avatar
Name:Matthew Smithson
Clan:Unknown
Skills:rust, elixir, f#, js, sql
Member Since:Mar 2016
Last Seen:Feb 2024
Profiles:
Following:6
Followers:6
Allies:6
View Profile Badges
Ad
Educator, struggling to assess your students?
Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (5)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • commented on "Find the stray number" kata
    • 6 years ago

    And why the downvotes then?

  • Custom User Avatar
    • Chrono79
    • commented on "Find the stray number" kata
    • 6 years ago

    That's not a kata issue, your code doesn't work as it is written in the available Ruby version (and I already told you why). If that's not helping, I don't know what you want. Instead of chaining methods, separate what you do in several steps and print that, you'll see why your code fails here.

  • Custom User Avatar
    • Chrono79
    • commented on "Find the stray number" kata
    • 6 years ago

    I was able to make your code work, but I had to modify it.

  • Custom User Avatar
    • Chrono79
    • resolved an issue on "Find the stray number" kata
    • 6 years ago

    In repl.it (Ruby version 2.5 like in CW) it also returns 1. Check how you're sorting and what you return.

  • Custom User Avatar
    • G0ldenSp00n
    • commented on "Triple Trouble" kata
    • 9 years ago

    Fixed, sorry about that!

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...