http://codeforces.com/contest/279/problem/B Please explain the output. asked 13 Jul '17, 09:19

The output is the maximum no. of books the person can read! Hope this helps :) answered 13 Jul '17, 12:23

The question asks you to find the maximum number of consecutive books that Valera can read within the given time, t. Formally, you have to find the length of longest subarray such that the sum of its elements <= t This problem can be easily solved by using:
You can refer to my solutions if get stuck. Two Pointer: http://codeforces.com/contest/279/submission/28493897 Binary Search: http://codeforces.com/contest/279/submission/28493182 answered 13 Jul '17, 13:12
