code is giving tle for 2 test cases
Strongest fighter problem
hello @jha.aparna17
ur solution time complexity is O(n*k) thats why it is giving tle.
refer this for O(n) approach->
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->