• 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
ccnklc Avatar
Name:Unknown
Clan:Constructor Labs
Member Since:Aug 2017
Last Seen:Dec 2020
Profiles:
Following:28
Followers:28
Allies:28
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (9)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • chidam
    • commented on "Maximum subarray sum" javascript solution
    • 2 years ago

    This solution is not correct.

    try this. actual answer should be 6.

    console.log(maxSequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]));

  • Custom User Avatar
    • gritsngravy711
    • commented on "Maximum subarray sum" javascript solution
    • 5 years ago

    Still a pure function because in order for it to be impure , it would have to access variables OUTSIDE of the function call...this function would always output the exact same thing if given the same input because there is no outside state effecting what happens inside the function...

  • Custom User Avatar
    • tayurus
    • commented on "Maximum subarray sum" javascript solution
    • 6 years ago

    пиздец, я в шоке, как таким умным можно быть-то блять.

  • Custom User Avatar
    • mrsoto
    • commented on "Maximum subarray sum" javascript solution
    • 7 years ago

    Your reducer is not a pure function because references currentSum which life outsize the function.

  • Custom User Avatar
    • MatheusParanhos
    • commented on "Maximum subarray sum" javascript solution
    • 7 years ago

    why not?

  • Custom User Avatar
    • missKatiaPunter
    • commented on "Sort odd and even numbers in different order" javascript solution
    • 8 years ago

    Great solution

  • Custom User Avatar
    • Voile
    • commented on "Cryptography Challenge - Log of Lights" kata
    • 8 years ago

    ( and I don't think so; you know how arbitrary human behaviour is supposed to be different from truly random behaviour ),

    I don't think you get the key of the puzzle ;-)

  • Custom User Avatar
    • aweleshetu
    • created an issue for "Cryptography Challenge - Log of Lights" kata
    • 8 years ago

    needs more random tests, check out my cheat solution passing :)

  • Custom User Avatar
    • JohanWiltink
    • created a suggestion for "Cryptography Challenge - Log of Lights" kata
    • 8 years ago

    If truly random testing is impossible ( and I don't think so; you know how arbitrary human behaviour is supposed to be different from truly random behaviour ), you could at least randomize the order of testing.

    Otherwise, cheating is just too easy.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...