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.
Not a kata suggestion. Closing.
Exit Full Screen
I don't understand the thirth example, when the second element(6) is bigger then the first and the thirth ones. Why it takes value 10 for max. I think the idea of problem is to find the max element and then take in account all previous elements.
Because the next one after max is smaller than max. And then you go on calculation.
I don't understand the thirth example, when the second element(6) is bigger then the first and the thirth ones. Why it takes value 10 for max. I think the idea of problem is to find the max element and then take in account all previous elements. Because the next one after max is smaller than max. And then you go on calculation.
Excellent kata! At first this one seemed difficult, but once you break it down, its not bad. :)
You can say that again!
Excellent kata! I'm not sure why, but I had a very hard time wrapping my mind around this one.
@hobovsky when asked like that, I don't believe I should have used the word "hack". Something like "unconventional solution" would have been more appropriate. I was also surpised to see the number of possible solutions.
@WestwardLand968 before replying or marking something as resolved, please make sure to read the comment you are interacting with. No where in my comment do I state that the kata is too difficult nor do I state that the rank should be changed. Interactions like yours do nothing but hurt the codewars community.
Not a suggestion, this kata is not difficult if you think it through.
I've added the
codegolf
tag as per @hobovsky's suggestion though.Also, rank may not be changed.
done
am able to complete the tests but it failed because it was over the character limit. given it is a 7 kyu i would hope i could submit, because im not super confortable with single line code yet
How does this require a "hack"?
As much as I despise code golf kata, I was quite surprised with amount of allowed solutions and possible ways of solving it.
But I agree that it would be nice to have
codegolf
tag.This is an exellent kata, but I fail to see how this is a beginner friendly kata. For python at least, I feel that the code size limit is far too small. Forcing the kata to be completed on a single line or single return line is a unique and excellent idea. However with the size set as small as it is, the solution becomes unachievable for most beginners. Having completed this kata, I'd like to provide the following feedback/suggestions:
50
.Basic
orFundamental
about this.tricky
or requires ahack
to complete.Exellent Solution! Nice to see this Kata complete without any built-in functions and without the use of strings. Well done!
This Kata was good, but the optional challenge of making it a one-liner made it a ton of fun.
thanks a lot. To tell the truth, I did not know the struct library before and I felt stupid reading the others' answers!
Thank you B1ts, I still have a lot to learn lol.
Loading more items...