Lesson 5:3 | Prefix Sums | MinAvgTwoSlice | Problem Solving | Java | Codility for programmers

preview_player
Показать описание

#Java #Codility #Problem Solving
Рекомендации по теме
Комментарии
Автор

Hi Sir. Thanks for example. Now I have question: Why p + 3 can you explain? (q >= p + 1 && q < p + 3) range contains only 3 element sliced array. Even in example we have array with 4 elements. I tried p + 4 and it worked as well(gave me 100% result). But in objective is not mentioned that sliced array might have maximum 3 or 4 elements. So where is magic?

giorgi
Автор

wrong explanation for 2nd for loop condition

rahulchauhan-phtk
join shbcf.ru