Have a Doubt in Round #714 (Div. 2)

Revision en2, by Rahul1998, 2021-04-12 02:05:38

This is the question link :- (https://codeforces.com/contest/1513/problem/A) In this problem statement , I am confused that the index variable 'i' is starting from 0 or 1 ?? Down below , I am adding that part of problem where I have issue .

Note In the second test case of the example, we have array a=[2,4,1,5,3]. Here, indices i=2 and i=4 are the peaks of the array. This is because (a2>a1, a2>a3) and (a4>a3, a4>a5).

here , a2 is representing 3rd element or second element and a1 is representing 1st or 2nd element ??

Tags round #714 (div. 2), array and peaks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Rahul1998 2021-04-12 02:05:38 11 Tiny change: 'at the indices 'i' is st' -> 'at the index variable 'i' is st'
en1 English Rahul1998 2021-04-12 02:05:02 571 Initial revision (published)