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.
Sorry but at this level a brute force solution IMO it's not Clever or Best Practices.
My solution it's simple and clear.
Sorry but at this level a brute force solution IMO it's not Clever or Best Practices.
My solution it's simple and clear.
This comment is hidden because it contains spoiler information about the solution
OMG, thanks!
The test is like this:
2000 is at the beginning, not at the end, in the expected result. In the input value they can be at any order.
I think it's not an ASCCII order problem (same weight):
I have read the instructions hundreds of times, but I still don't understand in the first test why 2000 (2) comes at the end, after 99(18). Or how 103 (4) comes before 2000 (2).
I understand that the order would be: 2000(2), 103(4), 123(6), 4444(16), 99(18), but in the test it says: 103, 123, 4444, 99, 2000.
(It is in C#)
I'm sure should be some silly thing, but I can't see it, please help.
Thanks in advance.
Thanks very much for the explanation, now I understand it!
Great idea!
(manual notification, see above)
Thanks for reply, yeah, I understand the horizontal and vertical, I don't understan how check the four(really two) diagonals with this code.
it checks that no pairs of queens are on the same diagonals (here, it's enough because no two queens can be on the same horizontal or vertical lines, considering how I generate the different possibilities)
This comment is hidden because it contains spoiler information about the solution
You are right that when initial queen is given as
c3
, thenc3
should be in the answer.In the description,
'c3'
is an example of an input, and'd8,a7,e6,h5,b4,g3,c2,f1'
is an eample of some output, not related to the example'c3'
. But this is a valuable remark, the example probably could be clarified in this matter.(for python)
I don't understand the instructions, if you fix a queen position, in the solution should be the initial queen fix.
For instance, if the fix queen is c3, the solution shoud be a.,b.,c3,d. ...
In the instructions says for c3, the solution is d8,a7,e6,h5,b4,g3,c2,f1 I don't understand why g3 and c2
Please, could you help me?