Strongest fighter problem


code is giving tle for 2 test cases

hello @jha.aparna17
ur solution time complexity is O(n*k) thats why it is giving tle.

refer this for O(n) approach->

@jha.aparna17
what issue u r facing now?