Ad
  • Custom User Avatar

    Not a kata suggestion. Closing.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Excellent kata! At first this one seemed difficult, but once you break it down, its not bad. :)

  • Custom User Avatar

    You can say that again!

  • Custom User Avatar

    Excellent kata! I'm not sure why, but I had a very hard time wrapping my mind around this one.

  • Custom User Avatar

    @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.

  • Custom User Avatar

    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.

  • Custom User Avatar
  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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:

    • Increase code size limit to 50.
    • Update the tags to better represent the kata, there is nothing Basic or Fundamental about this.
    • Provide wording in the description that can warn beginners that this is tricky or requires a hack to complete.
  • Custom User Avatar

    Exellent Solution! Nice to see this Kata complete without any built-in functions and without the use of strings. Well done!

  • Custom User Avatar

    This Kata was good, but the optional challenge of making it a one-liner made it a ton of fun.

  • Custom User Avatar

    thanks a lot. To tell the truth, I did not know the struct library before and I felt stupid reading the others' answers!

  • Custom User Avatar

    Thank you B1ts, I still have a lot to learn lol.

  • Loading more items...