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.
You are a real hater, aren't you ?
You are a real hater, aren't you ?
Hi,
you surely forgot to open or more probably to close some other parentheses, squared or curly brackets somewhere eralier (funny part being: you have to spot it by yourself... x) )
That is sad to hear, you are very close. But keep in mind that the kata is not about which numbers, just that a number is found.
Edit: nvm, be aware of duplicates
Order shouldn't matter, that's why the test is like this:
I've tried returning
["11", "12", "14", "21", "22", "24", "41", "42", "44"]
for"11"
and it works.Can you be more specific? Thanks, suic
mmh, I forgot about that subtlety. You didn't pay enough attention to this requirement:
(edit: seems I'm a little late... x) )
And there's 2
B
s andD
s on the map, and they're both hit, so it's all correct.They're different objects, but they can have the same ID.
you don't care about the number of hits. Just the targets that have been hit.
This comment is hidden because it contains spoiler information about the solution
Just avoid list and repeated calc of the squares. Both is taking a lot of time. My results in sec:
n = 1.000: 0.0002543900000091 sec
n = 10.000: 0.0019760499999847 sec
n = 100.000: 0.0156731199999967 sec
n = 1.000.000: 0.1389633400000093 sec
n = 10.000.000: 1.4097446399999853 sec