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.
They are two parameters of a lambda expression
What are "r" and "i"? they are not declared...
Chars have a value. E.g. '3' is 51 and '0' is 48. Subtracting is a way to convert chars to int.
thx bro. I appriciate it
https://stackoverflow.com/questions/2696812/varying-behavior-for-possible-loss-of-precision
https://stackoverflow.com/questions/8710619/why-dont-javas-compound-assignment-operators-require-casting
this is strange. When I write this code:
int sum = Math.pow(1,2);
I will get an error message which says: "Cannot convert from double to int".
But why does your notation ->> sum += Math.pow(a ,b); works?
if you rewrite this to -> sum = sum + Math.pow(); <<- it wont work!
Could you please explain?
I do not understand what is going with the " - '0'" part of the reduce statement. I tried running it on my pc without it, and 39 becomes 2907. Why?!
while n >= 10, multiply all digits in n(as string). Then you will get the next n.
can someone please explain this code to me.