Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
1,644 views
1<=A[i]<=1000000

1<=N<=100000

 Eg- {10,1,9,9}

K = 3

Output : 3 , as this subarray : {1,9,9} , when you insert K in it , it becomes the 2nd largest element of this subarray . Also , this was the largest subarray possible .
in Algorithms and Problems by Expert (144,420 points)

Please log in or register to answer this question.

...