• 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
ALowVerus Avatar
Name:Aidan Low
Clan:Dartmouth
Member Since:Nov 2019
Last Seen:Mar 2025
Profiles:
Following:484
Followers:523
Allies:481
View Profile Badges
Ad
Educator, struggling to assess your students?
Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (416)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • K01egA
    • created an issue for "Assembling a Circular Genome (Shortest Common Superstring)" kata
    • 2 months ago

    Toy tests fails with ValueError: max() arg is an empty sequence if solution is differently rotated. E.g. "AACGTTCG" for first test.

  • Custom User Avatar
    • dfhwze
    • commented on "Assembling a Circular Genome (Shortest Common Superstring)" kata
    • 3 months ago

    I added those tests now also in final tests. I don't see what makes these tests so special that you would not pass all of those as well.

  • Custom User Avatar
    • lithoformer
    • commented on "Assembling a Circular Genome (Shortest Common Superstring)" kata
    • 3 months ago

    Was able to submit a solution without passing all of the 3 initial toy tests. Was this intentional?

  • Custom User Avatar
    • T-Mann333
    • commented on "Can you get the loop ?" kata
    • 14 months ago

    Good question. I am struggling also with the node check.

  • Custom User Avatar
    • ALowVerus
    • resolved an issue on "Computational Geometry #1: Mixing Paints" kata
    • 2 years ago

    Per the description:

    Test constraints:
    
    30 sets of random source paints will be tested.
    Each source paint will have an R value and a G value ranging from 0 to 1.
    Each set of paints will contain up to 10 unique paints. (I create 10, then dedupe.)
    Each set of paints will be tested by sampling a 40x40 grid. i.e. the point (0,0) will be tested, then (0,0.25), then (0,0.5) etc, up to (0,0.975), at which point the test will roll over to (0.25,0). Your solution should be able to handle these 48000 validate queries rather quickly - my solution gets them in around 1-2 seconds.
    
  • Custom User Avatar
    • ALowVerus
    • resolved an issue on "Coping with NP-Hardness #4: 3-Recoloring" kata
    • 2 years ago

    This isn't a bug. You're not passing because you're breaking the tests, you're passing because the operation you're doing in your solution is a valid way to recolor all the nodes. It's not one that I like, but it's valid, and trivializes the issue.

    Perhaps the problem should force certain nodes to start as certain colors, in order to disable this trick? If so, that should be a separate kata. I'm certainly not coding it up here.

    Regeardless, nice solution. Resolving.

  • Custom User Avatar
    • ALowVerus
    • resolved an issue on "Coping with NP-Hardness #2: Max Weight Independent Set of a Tree" kata
    • 2 years ago

    Now deepcopying inputs prior to administrating tests, so mutation doesn't affect validation. Ty for callout.

  • Custom User Avatar
    • Voile
    • created an issue for "Finding a Circulation" kata
    • 2 years ago

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

  • Custom User Avatar
    • Voile
    • commented on "Finding a Circulation" kata
    • 2 years ago

    Sample tests are also broken:

    Traceback (most recent call last):
      File "/workspace/default/tests.py", line 11, in <module>
        test_run(truth, answer, lines, node_count)
    TypeError: test_run() takes 3 positional arguments but 4 were given
    
  • Custom User Avatar
    • Voile
    • created an issue for "Computational Geometry #1: Mixing Paints" kata
    • 2 years ago

    The kata needs to specify len(paints), because this is relevant to the runtime complexity of the solutions too.

  • Custom User Avatar
    • Voile
    • created an issue for "Coping with NP-Hardness #4: 3-Recoloring" kata
    • 2 years ago

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

  • Custom User Avatar
    • Voile
    • created an issue for "Coping with NP-Hardness #2: Max Weight Independent Set of a Tree" kata
    • 2 years ago

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

  • Custom User Avatar
    • Locus Lontrime
    • commented on "Assembling a Circular Genome (Shortest Common Superstring)" kata
    • 3 years ago

    Amazing Kata, thanks for a something closely related to the real world problems.

  • Custom User Avatar
    • ALowVerus
    • commented on "Compute a convex hull" python solution
    • 3 years ago

    Thank you for your kind compliment. I try.

  • Custom User Avatar
    • benjaminzwhite
    • commented on "Compute a convex hull" python solution
    • 3 years ago

    This is really great @ALowVerus, thanks for leaving all your work and comments - I wish more people did it as it's a useful learning resource!

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...