I recently had to do a codility test for a job interview. Now I realise I need to brush up on some basics. They offer "lessons" which I've started going through, but they don't make for very good ...
task 01 BinaryGap (Task Score 100%, Correctness 100%, Performance 100%) from "Lesson 1 Iterations" task 02 CyclicRotation (Task Score 100%, Correctness 100%, Performance 100%) from "Lesson 2 Arrays" ...
What's more, every block should contain at least one peak. Notice that extreme elements of the blocks (for example A[K-1] or A[K]) can also be peaks, but only if they have both neighbors (including ...