• 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
studk Avatar
Name:Unknown
Clan:Unknown
Member Since:Apr 2023
Last Seen:Apr 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (7)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Chrono79
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

      "found the needle at position " plus the index it found the needle, so:

      It's in the kata description.

    • Custom User Avatar
      • studk
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

      Thank you. I did a two solution for it which the first one is just literally looks for the string "needle" and then the other one is to apply my first approach which is to convert the values inside of the array to string which is unnecessary but yea just to make it possible with case insensitive haha.

    • Custom User Avatar
      • itvitjok
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

      Somehow a bit stupid...
      In the condition it is necessary to indicate that we are looking for the index of the element and not its position!!!

    • Custom User Avatar
      • studk
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

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

    • Custom User Avatar
      • studk
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

      I can't see your comment

    • Custom User Avatar
      • NunoOliveira
      • commented on "A Needle in the Haystack" kata
      • 2 years ago

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

    • Custom User Avatar
      • studk
      • commented on "A Needle in the Haystack" kata
      • 2 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...