• 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
serprex Avatar
Name:Demur Rumed
Clan:Unknown
Member Since:Apr 2017
Last Seen:Jun 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (10)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • pianowow
    • commented on "Check and Mate?" javascript solution
    • 8 years ago

    I learned about generators from this solution. Thanks! Maybe some day they will be widely browser compatible.

  • Custom User Avatar
    • serprex
    • commented on "Double Cola" kata
    • 8 years ago

    Have yet to solve, but maybe there's some riddle to 'return the name of a man who will drink'? Maybe not...

  • Custom User Avatar
    • serprex
    • commented on "My smallest code interpreter (aka Brainf**k)" haskell solution
    • 8 years ago

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

  • Custom User Avatar
    • serprex
    • commented on "Befunge Interpreter" haskell solution
    • 8 years ago

    For optimized Befunge implementations I've created, see https://github.com/serprex/Befunge

  • Custom User Avatar
    • serprex
    • commented on "Equal Sides Of An Array" haskell solution
    • 8 years ago

    This failed 1 random test on the 1st attempt. No failure on the 2nd

  • Custom User Avatar
    • ryanjmack
    • commented on "Find the first non-consecutive number" javascript solution
    • 8 years ago

    Ah, coercion. Thanks for pointing it out - I refactored it.

  • Custom User Avatar
    • serprex
    • commented on "Find the first non-consecutive number" javascript solution
    • 8 years ago

    Sorry, wrong example, but idea holds. Change values to [-2,0]. This time I tested to verify that it returns null

  • Custom User Avatar
    • ryanjmack
    • commented on "Find the first non-consecutive number" javascript solution
    • 8 years ago

    Care to explain your reasoning?

    My function returns 1 for [-1, 1] - unless I'm missing something that is the correct answer.

    The function will never return the first number. The first number starts the sequence, it can't be non-consecutive in that case. The second number should be 0 but it's -1 so that is the first non-consectuive number.

  • Custom User Avatar
    • serprex
    • commented on "Find the first non-consecutive number" javascript solution
    • 8 years ago

    This fails for [-1, 1]

  • Custom User Avatar
    • serprex
    • commented on "Selective Array Reversing" kata
    • 8 years ago

    I'm using Python, it's seeming to not want some lists reversed when length exceeds length of list. Yet it does in the example test cases

    When using Javascript it's exceeding the 12 second time limit. My code is O(N)

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...