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.
yes, sure :D
Your code snippet is excellent. I like such clever solutions. But here I wanted to avoid using any functions as per the task description.
😉
80 similar code variations are grouped with this one :)
he-he
agree
agree
I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again. I will never skip the instructions again.
"61 similar code variations are grouped with this one" -> "61 prefer not to read the rules"
Thanks for your feedback!
I have not read the condition carefully.
I really thought that the condition is imposed on the input parameter, and not on the result.
The fixed solution is here:
https://www.codewars.com/kata/reviews/5b86545bb80ee00ca6000358/groups/5fa7cc73a3c4740001e6a6f8
Your code us clear. But I think the program description is the result larger than 140. The input is not. Since the input contains many spaces , the input is always larger than the result. So , although input is larger than 140 , the result may not larger than 140. So , your code does not work welll if the input is larger than 140 while the result is not.