You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// There is a group of MMA fighters standing together in a line. Given the value of their strengths, find the strength of the strongest fighter in continuous sub-groups of size k.
7
+
8
+
// Input Format
9
+
// First line contains an integer N, the number of fighters Followed by N integers where i'th integer denotes the strength of i'th fighter. Next line contains the size of sub-group k
10
+
11
+
// Constraints
12
+
// 1<=N<=10^7
13
+
// 1<=k<=N
14
+
// 1 <= Ai <= 100000
15
+
16
+
// Output Format
17
+
// Space separated integers in a single line denoting strength of strongest fighters in the groups.
0 commit comments