Rank Football Teams and Return Top Two Indices

Given four integer arrays of equal length n: wins, draws, scored, and conceded, where index i represents team i:

  • wins[i] is the number of wins;
  • draws[i] is the number of draws; ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: