Need Help In solving this question.

Правка en1, от uttamkumarreddy123, 2024-06-26 15:49:54

You are given an array A of size N.

Let B denote the list of all N*(N+1)/2 subarray sums of A sorted in non-increasing order.

Your task is to return the Kth element in B. Since the answer can be very large return it modulo 10+7

1<=N<=10**5 1<=K<=min(N*(N+1)/2,10**5) 1<=a[i]<=10**9

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский uttamkumarreddy123 2024-06-26 15:49:54 327 Initial revision (published)