Ad
  • Custom User Avatar

    I found your objection here confusing until I thought about it.

    Fundamentally, I agree. However, I think the underlying problem isn't the logic of planets leaving the system. That's a symptom. The problem is that the orbits change. As you note, if a planet leaves the system on the left, all other planets shift to fill lower orbits. However, if a planet is destroyed the same thing happens. The logic is consistent and solvable, but it's weird. There's a sort of extra movement built into it.

    My biggest complaint, I think, is that the series didn't build upon itself. It would have been great if each new entry in the series added instead of being essentially the same with a different skin.

  • Custom User Avatar

    See above, I think the timing assessments are off by a factor of 10.

  • Custom User Avatar

    Yes, random tests Javascript

  • Custom User Avatar

    ffs, I thought I had fixed that... x/ Yes, it should be "propenoyl..."

    random tests, I guess?

  • Custom User Avatar

    This one bothers me:

    15-[1,2,2-triamino]propenanoyloxy-2,4,5,12-tetra[2-[[4,5,5-tribromo-1,4,6,7-tetrachloro]hept-2-enyl]arsino[1,2-diamino]ethenoxycarbonyl]hexen-3,5-diynylhexadec-10,13-diynoic acid

    It has propenanoyloxy in it.

    This has both an alkene en and alkane an suffix, before the oyloxy.

    Yet, examples, such as 4-propanoyloxypentanoic acid and prop-2-enoyloxy..., never show this combination.

    How do you explain propenanoyloxy?

    In general

    • Can any alkene, alkyne, alkenyne have an as additional suffix or only in front of oyloxy?
    • In your summary, you sometimes use alk, sometimes alkan as prefix; What do you mean in these cases?
      • (alk) -> is this just a radical?
      • (alkan) -> is this a radical, with alkane/alkene/alkyne?
    ester                 .                   (alkyl) ...oate
                          (alk)oxycarbonyl
                          (alkan)oyloxy
    
  • Custom User Avatar
  • Custom User Avatar

    js fork approved

  • Custom User Avatar

    except the test is not on ans...

  • Custom User Avatar

    You should explain the math notations: not all users have a math-college background (hint: I don't ;) )

    Also names are not to be chosen randomly. If you can switch the function name from sum_not_prime to sum_prime without changing anything else, this means the name has nothing to do with the task (or one of them is totally wrong).

  • Custom User Avatar
  • Custom User Avatar

    Sorry, this is my first attempt at creating a kata. I don't understand what the problem is in my description. Maybe you can help me?

  • Custom User Avatar

    Definitely shorter, but not more readable IMHO.

    If you want something that sort, but a bit more readable (and pythonic) you could use:

    return ans if ans and len(ans) < 140 else False

    Anyways, ans is never going to be empty because you already inserted '#'

  • Custom User Avatar

    The description still doesn't describe the actual task.

    What do the mathy shenanigans mean?

    also, sum_not_prime became sum_prime whithout any additional explanation: this smells absolutely bad for the quality of the description.

  • Custom User Avatar

    ready

  • Custom User Avatar

    ready

  • Loading more items...