• 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
Maverink Avatar
Name:Unknown
Clan:Unknown
Member Since:Oct 2017
Last Seen:Aug 2023
Profiles:
Following:7
Followers:2
Allies:2
View Profile Badges
Career Accelerator
Ad
Land Your Dream Job in Tech
Coding Dojo offers a full-stack programming and data science bootcamp online and in-person.Request Info
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (4)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • commented on "Wise drunk man" kata
    • 8 years ago

    See the example tests.

  • Custom User Avatar
    • dunjamarc
    • commented on "Array of twins" kata
    • 8 years ago

    Sorry for late reply.

    Your if statement is wrong. After sorting the array (example) [1,2,3,2,1], it looks like this [1,1, 2, 2, 3]. But your if statement does this:
    if ( 1 == 1 && 1 != 2){returns true} (1 == 2 && 1 != 2){returns false} and so on...

  • Custom User Avatar
    • KenKamau
    • commented on "Unique string characters" kata
    • 8 years ago

    JS? It's fixed now.

  • Custom User Avatar
    • Voile
    • commented on "Friend or Foe?" kata
    • 8 years ago

    Why early return? ;-)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...