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.
Same I also did this but with string since it's the return type and it wouldn't work so I wrote an if statement with the replace method inside instead.
Iterating by the multiple, rather than using mod on every number (like I did), is an interesting way to go about it. I like it!
you might have forgotten to write Replace with a capital R.
there's no way you literally did this and it didn't work
This comment is hidden because it contains spoiler information about the solution
not best practice because magic numbers.
i see 4.54609188 and 1.609344 but
if i was looking at this code for the first time I wouldn't immediately know what they represent.
If I am coding for me its ok to avoid most of the data validation.
I hope most of the members hear for improving the skills and adapt new ideas to be a bug free coding.
When practicing do concentrate in perfection, it’s my vision.
I am sorry to both of you if I heart you in some way.
Just my opinion, but it seems the whole point is to write code for the purpose of passing the tests, so if it passes; it passes. I actually often don't read the description, if it's not necassary. First thing I do is return the inputs to see what I'm given, and what is expected. THEN, I read the description if it's not obvious what to do. This saves me a lot of time. If any requirement is truly a requirement, it should be tested for.
That being said, I do appreciate the hard work of the kata creators, and some descriptions are very clever/funny and have made me laugh out loud at times.
You can't expect the Users to read the description
If the answer ends with a 0, it should be rounded off without the 0. So instead of 5.50, we should get 5.5.
This requirment?
I think there should be a test case for two ships touching at the bottom right and top left corner.
battleField = [[1, 0, 0, 0, 0, 1, 1, 0, 0, 0],
[1, 0, 1, 0, 0, 0, 0, 0, 1, 0],
[1, 0, 1, 0, 1, 1, 1, 0, 1, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], # <-----
[0, 1, 0, 0, 0, 0, 0, 0, 0, 0]] # <----- like those two ships on the left side of the grid
Thank you. I feel like the rank Progress and the honor points for the last kata are still missing. Can they be achieved again? Greeting
It was an issue with our cheat detection. In light of this issue I've changed the way that it works so that all suspected cheats first are sent to a our team's Slack channel so that we can manually review each cheat. I've removed the cheat points from your profile.
In my site-events it also shows -15 for cheats detected.
What did I do wrong?
Where there honor calculation issues again?
I just completed a 3kyu kata and lost 20 honor points. :(
Greetings
Loading more items...