Ad
  • Custom User Avatar

    There are 20000 JS tests in total, your code handles about half of them, I have run it several times - the result is 10_000 - 12_000. To be honest, I haven't looked closely at your code and can't tell you exactly what the problem is, but your algorithm needs to be improved. However, before you change anything, maybe you can add caching for some “heavy” calculations (if there are any and it is possible), it might work.

  • Custom User Avatar

    Okay. That makes it a little clearer. Thank you. I may have more questions).

  • Custom User Avatar

    I got to the section Amines, phosphines, arsines: and here I have another question. In the description for it says Ramifications of ramifications that there should be a pattern like this.

    positions + “-” + multiplier + “[” + subramification + “]” + radical + “yl”
    

    But in the description I see this example - ethan-1-[dimethyl]amine, can you please explain this, ramifications does not end with ...radical + “yl”?

  • Custom User Avatar

    Thanks for the quick reply and for breaking down this example. It all makes sense. Now I realized what the mistake was. The list of prefixes in python is missing oyloxy and I just copied it and didn't double-check it)). Perhaps you could update it and be able to add that prefix or is that the way it's designed?

  • Custom User Avatar

    Or is there “garbage” in the formulas and such cases should be ignored?

  • Custom User Avatar

    I remember almost nothing from chemistry class and it's a real pain to keep everything in my head, so many rules. So, I started writing a tokenizer and got stumped, I can't figure out how to parse it:

    8-but-3-ynoyloxyoct-3,5,7-triynoic acid
              ^
    

    This is where my tokenizer breaks down, because I can't figure out what to match the part after yn with. Perhaps (probably) I'm missing something from the description, I'd be grateful if you could help me.

    p.s. Don't judge strictly:))).

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    I would of course love to solve in python as well, however it seems to me that time has passed. This kata is practically 10 years old and now IMHO, it is not 1kuy. Maybe you should just do something based on this task, but heavily refined (I mean a completely new publication)? For example, make it a performance task, add: JOIN, LEFT JOIN, RIGHT JOIN, DISTINCT, CASE, EXISTS.... These are just as examples of what could be implemented and improve this kata.

    By the way as a performance option, if there will be large data volumes and different sized tables, the right JOIN will make a difference. If you do it nicely and add significant differences from this kata, I think it would be a great new kata.

    p.s. I wonder if anyone has responded on Discord though? What kind of response did you get?

  • Custom User Avatar

    Roger that. Thank you!

  • Custom User Avatar

    Yeah, well, that's the way it is. I had a variable called convertFunctions in my code and it was the variable that the anti-reader didn't like. Thank you @hobovsky for responding so quickly and helping me. However, I think it is either worth improving the error message. As I wrote above - You cannot do that doesn't say anything, given that there is no mention of Function being forbidden. Or could we update the description and add clearer requirements as to what is being tested in this test?

  • Custom User Avatar

    The javascript language. I thought maybe the problem was that I was using JSON in the class name, but no, by changing it it still didn't work.

  • Custom User Avatar

    I'm trying to post my solution and I keep getting an error from anti-chit - You cannot do that. What exactly can't I do, what do I need to fix? I'm tired of playing the guessing game. These rules should be clearly spelled out. I realize it probably doesn't like some of the naming in my code, but I shouldn't have to guess, the error should clearly tell me what needs to be changed. JSON.parse and eval I understandably don't use.

  • Custom User Avatar

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

  • Loading more items...