Ad
  • Custom User Avatar
  • Custom User Avatar

    Sorry I didn't notice your replies earlier. I'm not sure what's the correct way to do this, but hopefully I'll find some time in near future to figure it out.

  • Custom User Avatar

    There's no valid kata issue presented. You don't explain how these "things" are wrong. If you carefully analyze the example, it should make sense. Keep in mind that this is a puzzle kata, so it's not meant to be a straightforward task.

    And watch out with your "demented" language when commenting. This isn't a COD lobby, you know?

  • Custom User Avatar

    You should print the input lists at the beginning of the function to see where it fails. See https://docs.codewars.com/training/troubleshooting/#print-input

    It's currently failing with some negative numbers in array1.

  • Custom User Avatar

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

  • Custom User Avatar

    That's because booleans are also instances of int. And in Python, 0 == False.

  • Custom User Avatar

    I've tried it myself, and they aren't the same to me. When I say Reset, I mean the button below CW code editor, not just refreshing the browser

    Please verify if that works or not.

  • Custom User Avatar

    But there are no such performance requirements here, hence 7kyu. What's the actual suggestion?

    Suggestions are meant to improve tests or description, not give suggestions for solvers. Please reply/re-open if I misunderstood something.

  • Custom User Avatar

    Should be fixed. Try copying your code and hitting Reset button.

  • Custom User Avatar

    If you mean the translation, then, if the rank is fitting, it's probably OK. Otherwise, you shouldn't translate to a language that makes it too easy to solve. Because it is a white kata, it should be fine if you solve it that way.

    It may be possible to block using such things (I don't know about Dart specifically), but that's almost never a good idea.

  • Custom User Avatar

    I wasn't familiar with brk. You should ask this question on CW Discord server, topics #asm channel. There's some clever people who should notice your question and answer.

  • Custom User Avatar

    Ah I forgot which kata this was. I haven't solved it in NASM, so I can't see your code, or what testing functions look like :/ When I tried NASM, I was too familiar with signal 6 and situations like yours :p

    You could try posting your code here for someone to analyze.

  • Custom User Avatar

    You probably don't want brackets around rdi, so you save value in the register directly.

  • Custom User Avatar

    Did you take Hob's reply into account? I'm just guessing, but... what's the maximum of an empty vector?

  • Custom User Avatar

    So the test expects false, but when you manually change it to expect true, it passes? Go figure indeed :P

    The problem is that you have two 9s in b2, but only one 3 in b1 (you need to account for multiplicity too). If you "square" b1, you get [4, 4, 9], and that's not the same as [4, 9, 9].

  • Loading more items...