You need to sign in or sign up before continuing.×
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.
I'm sorry, I didn't study the task conditions carefully.
I thought that the interval between neighboring elements of the sequence may differ from 1:)
Then I don't understand the logic of the task.
As I understood, it is necessary to check from left to right...
This comment is hidden because it contains spoiler information about the solution
I solved the problem.
We need to get rid of nested loops.
To do this, find a pattern in the table and write an algorithm with one cycle.
I solved the problem.
We need to get rid of nested loops.
To do this, find a pattern in the table and write an algorithm with one cycle.
The tests pass, but there is a 12000 millisecond timeout problem.
I write in js.
the same problem on js
not easy...:))