Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
:D
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.
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?
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
.This comment is hidden because it contains spoiler information about the solution
That's because booleans are also instances of int. And in Python,
0 == False
.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.
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.
Should be fixed. Try copying your code and hitting Reset button.
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.
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.
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.
You probably don't want brackets around rdi, so you save value in the register directly.
Did you take Hob's reply into account? I'm just guessing, but... what's the maximum of an empty vector?
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...