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.
the count returns long; hence, you need to narrow it down to int because this is an int[]
readily.readable
This comment is hidden because it contains spoiler information about the solution
no.read.able.
Thanks for this answer, it helps me learn more about this languege. Obviously this time, chatGPT is helping me a lot.
I wish CW has button(s) to dislike or downvote on Best Practices and Clever sections like SO/SE/S*
This iterates 2x through the input array.
not readable. :P
Because of possible big numbers you should map it to long(or double as returned) not int.
As the result of the function is a long big numbers can be assumed.