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.
Please read two posts below yours.
there is an error with examples here. Try to do it with your hands with 810,812 and 818. Here they say that 833 will be done in one iteration. Before work, we will receive 64 + 9 + 9 = 82. In the first iteration there will be 68. 68 != 82 And what is the fun of such examples?
ohh thanks understood.
You don't need to count the steps, you need to return the length of the repeat(ed) sequence, and 1 is the length of the repeated sequence there.
C Translation (author inactive).
how 833 is 1 ?
first 833 = 64 + 9 + 9 = 82
then 82 = 64 + 4 = 68
then 68 = 36 + 84 = 100
then 1 = 1
totally 4 steps
C# tests generate warnings:
Method parameters should be in
camelCase
C#: with the given ranges on inputs, the correct answer can overflow the output type. At least, the return type should be changed to
long
.C# tests generate warnings:
C# tests generate warnings:
C# tests generate warnings:
C# tests generate warnings:
C# tests generate warnings:
C# tests generate warnings:
C# tests generate warnings:
Loading more items...