• 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
mathsisfun Avatar
Name:Unknown
Clan:Unknown
Member Since:Sep 2019
Last Seen:Mar 2025
Profiles:
    Following:1
    Followers:3
    Allies:1
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (21)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • ahmet_popaj
      • commented on "Error Correction Codes" kata
      • 6 months ago

      Pretty interesting programming concept, very funny.

    • Custom User Avatar
      • lechevalier
      • commented on "Zombie Apocalypse: the Last Number Standing" kata
      • 6 years ago

      I raised an issue for such cases, referee solution is indeed falsy.

    • Custom User Avatar
      • mvhv0
      • commented on "Zombie Apocalypse: the Last Number Standing" kata
      • 6 years ago

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

    • Custom User Avatar
      • mathsisfun
      • commented on "Zombie Apocalypse: the Last Number Standing" kata
      • 6 years ago

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

    • Custom User Avatar
      • mvhv0
      • resolved an issue on "Zombie Apocalypse: the Last Number Standing" kata
      • 6 years ago

      Thanks for pointing it out! Yep, the cap was faulty. Applied some fixes, and now it looks like it computes this list properly. I hope the issue is settled.

    • Custom User Avatar
      • mathsisfun
      • created an issue for "Zombie Apocalypse: the Last Number Standing" kata
      • 6 years ago

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

    • Custom User Avatar
      • docgunthrop
      • resolved a suggestion on "Error Correction Codes" kata
      • 6 years ago

      🖖

    • Custom User Avatar
      • docgunthrop
      • created a suggestion for "Error Correction Codes" kata
      • 6 years ago

      JavaScript translation awaiting approval.

    • Custom User Avatar
      • docgunthrop
      • resolved a question on "Error Correction Codes" kata
      • 6 years ago

      Marking question resolved.

    • Custom User Avatar
      • mathsisfun
      • resolved a suggestion on "Error Correction Codes" kata
      • 6 years ago

      Done, I think. I also tried to make it look a bit better.

    • Custom User Avatar
      • Blind4Basics
      • created a suggestion for "Error Correction Codes" kata
      • 6 years ago

      you should add to the description the equivalent linear string, used as input (below the second grid)

    • Custom User Avatar
      • mathsisfun
      • resolved an issue on "Error Correction Codes" kata
      • 6 years ago

      I'm pretty sure I've swapped them around now.

    • Custom User Avatar
      • mathsisfun
      • commented on "Error Correction Codes" kata
      • 6 years ago

      I've changed it so that for the random cases, it randomly decides to either do no errors (20%), a message error (40%), or a parity error (40%), and have combined the larger and smaller tests into one batch.

      I mostly am doing many tests because an answer which is almost correct might only fail in a small number of cases, and I wouldn't want slightly wrong answers to pass just because the case where they fail didn't come up in the testing.

    • Custom User Avatar
      • Blind4Basics
      • commented on "Error Correction Codes" kata
      • 6 years ago

      almost: the problem is that you announce to the user where the error will be ;)

      => you need to merge the 3 batches and pick randomly a strategy when you do one test. (note: is that necessary to do that many tests?)

    • Custom User Avatar
      • mathsisfun
      • commented on "Error Correction Codes" kata
      • 6 years ago

      I recently had to change how I did it to resolve one of the issues raised, so the examples now look like:
      Test.assert_equals(correct(2,3,'11111010001'), '11111010001') Test.assert_equals(correct(2,3,'11011010001'), '11111010001') Test.assert_equals(correct(2,3,'11111011001'), '11111010001') Test.assert_equals(correct(2,3,'11111010011'), '11111010001')
      So it is '111110' + '10'(rows) + '001'(cols). laid out it looks like:
      111 1
      110 0
      00 1
      I think your looking at the previous versions of the examples, which made sense then because I was doing columns and rows the wrong way around.

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...