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.
I am very new to codewars but this one was way too easy, felt more like 7kyu or so, is it possible to edit it and to add some more challanging code to it?
If yes, would love to help with it.
This comment is hidden because it contains spoiler information about the solution
No, you're just blind for... ;)
(not my mother tongue either ;) )
Mmmmmh...
Adding that, it should work, I think:
Note: the problem here is maybe that the
print
statments didn't need parentheses in python 2?"... or (b) considered to be an exception and put entirely into lower case unless it is the first word, which is always capitalised."
;)
Hi,
I'm not sure to understand what you want... :o
If you want a way to make compatible your IDE implementation with the
test
class used on codewars (I think that's what you're talking about), I used that for big katas development:On codewars, it's actually
test.assert_equals
but there is surely some aliasing somewhere, because that works withTest.assert_equals
as I use in my code too.EDIT: note that you can add
test=Test
after that to avoid any troubles with capitalization between your machine and CW's sample tests for example.Yeah, this is a problem I know well enough too... (the "blind for basics" thing... ;-o )
;-D
(yes, I live in the matrix, I guess... A bit too much, at least... ;) )
EDIT: crossed message with your update
Hello, I think you just misunderstood, that are three living cells are necessary to become alive.
\o/
"Pythonized java code", yeah, that's the idea! ;) (when it's possible... And that's not always... Java is quite often a pin in the ass compared to python :/ )
About oneliners (some call that "golfing"), it's generally more the eqivalent of BAD streams usage. The real equivalent in python of """good streams""" (note the number of quotation marks... ;-o ) would be list comprehension.
(sigh... I'lov' python... 8-) ;) )
Hi,
I had a hard time with that too. ;)
Actually, do not forget to consider that the field is unlimited, EVEN AT THE BEGINNING! ;) Meaning you should consider the starting grid being actually:
...and there you'll have your answer. ;)
No problem (at least I tried! So I wasn't wrong when I decided to quit my seller studies... ;-) )
(and I didn't know about performances (Java is my second language))
Cheers!
Hi,
Unfortunately, there nothing to do anymore abuot that: on codewars, the tests of katas with more than 500 completions are locked... ;-/
Streams are improvments of Java 8. Lots of programmers prefer "old ways", but that demands just a bit of habits to read and understand this. The only drawback of streams is that it might be hard to debug, yes, but it makes your code more compact, clearer (when you're used to it) because with less useless types declarations, you only read the usefull steps of your algorithm. So yes, I find it best practice. Meaning, "most of the times"... ;)
Only with the red-account from CodeWars. There you get an option "Head-to-Head Compare" in which in most cases you see the execution duration.
Loading more items...