• 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
xoh Avatar
Name:Unknown
Clan:81515
Member Since:Dec 2015
Last Seen:Oct 2024
Profiles:
Following:21
Followers:23
Allies:21
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (52)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • taha_malik
    • commented on "A Needle in the Haystack" javascript solution
    • 5 months ago

    great job !!

  • Custom User Avatar
    • phantekzy
    • commented on "A Needle in the Haystack" javascript solution
    • 7 months ago

    ouch , good job

  • Custom User Avatar
    • markuptitan
    • commented on "A Needle in the Haystack" javascript solution
    • 10 months ago

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

  • Custom User Avatar
    • Nodi_r
    • commented on "A Needle in the Haystack" javascript solution
    • 15 months ago

    so good, i nailed it.

  • Custom User Avatar
    • Laukso
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

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

  • Custom User Avatar
    • Fmh40
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

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

  • Custom User Avatar
    • Mejiabrayan
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    I was just going to point out - good thinking Henry!

  • Custom User Avatar
    • ScootRoosE
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    Nice! I used a reduce. But this is even more efficient. well done!

  • Custom User Avatar
    • olepak
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    it asks just what it asks. it does not ask to foresee absence of the "needle"

  • Custom User Avatar
    • ikalumba
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    Quite simply done

  • Custom User Avatar
    • henryJ19
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    I think this is a good strategy but wouldnt it be better to cater for a case when an array that doesnt contain needle

  • Custom User Avatar
    • mrbilalarain
    • commented on "A Needle in the Haystack" javascript solution
    • 2 years ago

    if it does't find the needle then what? test fails! should explicitly check for if a needle is really present.

  • Custom User Avatar
    • iamjexcdevvv
    • commented on "A Needle in the Haystack" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • iamjexcdevvv
    • commented on "A Needle in the Haystack" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • victormaoya
    • commented on "A Needle in the Haystack" javascript solution
    • 3 years 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...