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.
главное что задача решена) хотя конечно мое решение намного хуже этого
Iteresting solution
hm... didn't think that such a simple pattern would work. but okay i guess.
This is really quite novel. Nice!
It's not dissimilar to a 'for' loop with a list. Think of it as 'for [any item] in [what I'm telling you to look at]'.
In this case we're telling the program to look at a string, so the 'any item' is just 'any/each individual letter'. 'C' is simply a placeholder for that.
I appreciate this is checks watch 11 months late, but I hope it helps if you ever return here!
Same! TIL
A quick word of thanks - I actively learned from this. I appreciate all of you who put this answer in and helped make my code better. :)
There are so many ways to use without regex. I did use /n next line add it in my expression
this is because you defined all the methods of your class as returning
float
s. while it is true that the return type is not specified in the description, since all the input dimensions are integers, it makes no sense to return afloat
, as there are no divisions involved. this is a problem with your code and not a kata issue, but you may open a suggestion asking for the description to mention thissame question, I squizzed out everything I have learned currently to solve it within 2 lines but these people are different level monsters.
Maybe you are pro, but I think mine is more human readable XD
The conditions are reversed, while not exactly the same the function is continuos when n or m are 0 so, the result is the same.
I think here sould be 'OR' instead 'AND'. It said in task`s condition..
it's very good
Loading more items...