• 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
redtramp Avatar
Name:Unknown
Clan:Unknown
Member Since:Mar 2021
Last Seen:Apr 2025
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies (3)
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Kacarott
      • commented on "Pizza Pi Parsimony" javascript solution
      • 4 years ago

      in .reduce((a,c)=> ... ? c : a) the a is our current best choice. The c is the next one we are checking. We make a comparison (in ...) and if c is a better choice, we return that, otherwise we return a. Whichever one we return, will become a in the next comparison. When there is nothing left to compare, a is returned (the best choice from all).

    • Custom User Avatar
      • 0xjgv
      • commented on "Duplicates. Duplicates Everywhere." javascript solution
      • 4 years ago

      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in

      If v in seen then false and that means, filter the v from the array.

    • Custom User Avatar
      • Chrono79
      • commented on "Reverse every other word in the string" kata
      • 4 years ago

      When reporting a problem, please state the language you're talking about, not all languages have the same tests.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...