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.
unpublished
If you say so.
They are not the same, and there's already a proper duplicate issue raised below.
Similar to (https://www.codewars.com/kata/59e19a747905df23cb000024)
Random tests are missing.
I'm still confused. Lol
Probably it's just me being dumb here but could you just rewrite the specs as you would do in the kata description? Not the solution, just the specs.
Hey sorry about the slow reply, I had some busy days.
I appreciate the suggestion.. but honestly I have been looking at it for 5 minutes now and haven't yet figured out how you print the "^" out. Lol
Great, thanks a lot for the support. Yeah, actually maybe some help with the random test cases would be also appreciated.
This comment is hidden because it contains spoiler information about the solution
@t0mmy
,No problem, I just wanted to let you know. Like I said, it can be hard to search for duplicates when they all have different names. I've just solved many katas and I remembered a couple similar ones.
I appreciate you taking the time to update the function name, thanks!
Hi, sorry for the duplicate. I could not find those kata before posting mine, maybe I didn't search well enough.
I'll see if I can come up with something to make it more unique. In the meantime I'll change the method name as suggested. Thank you.
Edit: by changing the name I noticed that obviously many solutions posted so far do not pass the tests anymore. Is there a way to keep the updated name and the solutions posted before such update valid at the same time?
@t0mmy
,Although your kata is currently a duplicate of other katas, here is a suggestion for if/when you modify it to be unique!
PEP8 - Function Names
Suggestion
countConsecutives
should becount_consecutives
Thanks!
@t0mmy
,Your kata is a duplicate of this kata:
...and that kata is a duplicate of this kata:
It's sometimes hard to find them by name but there are many duplicate katas on Codewars. Maybe you could make some modifications to this kata to be unique?
Ehehe yeah I didn't really mean ugly after all (hence the question mark), I was rather thinking of readability. My idea was to put there a very simple solution using only basic loops. I have many other solutions to this problem, let's say that I'm fond of it for a series of resons.
Anyway it's to hear other people's (most likely way more expert than me) opinions. Thanks. :)
Woooops! Thank you!
Loading more items...