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.
Real-life kata!
solved it but when N gets over 28, it starts taking too much time and my code times out. I used dictionary lookups and stored diogonals inside as well as invalid squares stored as sets, idk how else i can optimize it though. whatevs, it was fun to poke around this one, thx!
fixed
This comment is hidden because it contains spoiler information about the solution
The sample tests fail on python 3.11 and 3.10 because the test harness was not imported.
I don't know why the main tests work fine; I worked around it on the sample tests by putting in
sample_check.__globals__['test'] = test
at the top of the 8 queen test function after importing the tests withimport codewars_test as test
at the top of the sample tests file.Also, I would appreciate it if you used PEP 8 formatting in your test code. (I was bothered by the 2-space indents)
In the description:
What is
maze.cell(0, 1)
? Isn'tmaze
a 2d array?what if we have two numbers with the same length but a < b. For example 13 and 25. the output will be 251325, but 132513 is needed
Can we just straight up delete this. I got some dirty points but I still cannot bear to see this horrendous description and test cases exist
mf trying to make the most confusing description ever, making us shorting name according to his fantasy
Retired as a duplicate. See https://github.com/codewars/content-issues/issues/89
Please use a spoiler flag.
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Very useful kata for real-applications.
lol
2 kyu kata if solved without wiki, 6 kyu if with, 4 kyu in average.
Thanks!
Ternary for the win!
Loading more items...