• 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
PictishProgrammer Avatar
Name:Jazahme
Clan:Unknown
Member Since:Jul 2022
Last Seen:Sep 2022
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (5)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • jonathan Nshuti
    • commented on "Find the unique number" kata
    • 3 years ago

    sure

  • Custom User Avatar
    • sansae
    • commented on "Find the unique number" kata
    • 3 years ago

    By 'The first item' test, I assume you mean, cases where the test is like this arr = [1, 2, 2, 2]. It's not passing because you initially assign 0 to n (totally fine), but then later, you're reassigning n to be arr[1], since arr[1] is not in non_unique at this point (at this point, non_unique only has arr[0]). Since you are adding items to an array and comparing, try adding the 2nd item into your non_unique array, then go from there. If you do add the 2nd item though, be careful to start your loop at the 3rd index of the array, and then compare. Not sure if that's giving away too much.

  • Custom User Avatar
    • PictishProgrammer
    • commented on "Find the unique number" kata
    • 3 years ago

    Ah thank you

  • Custom User Avatar
    • Chrono79
    • commented on "Find the unique number" kata
    • 3 years ago

    Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse

  • Custom User Avatar
    • PictishProgrammer
    • created a question for "Find the unique number" kata
    • 3 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...