Question
public ThreeTenDynArray getTopGames(){ //return the list of game indexes with the highest score of this player //if the player has no scores, return an empty
public ThreeTenDynArray
//return the list of game indexes with the highest score of this player
//if the player has no scores, return an empty list of size 0
//if there is a tie, the list should include all indexes in the ascending order
//O(n) where n is the number of scores in record _if_ appending to list is O(1)
return null; //default return, remove/change as needed
}
@Override
public boolean equals(Object o) {
// Two PlayerRecs are equal if they have matching player names: return true
// return false otherwise
// remember to check whether the incoming object is an instance of this class
return false; //default return, remove/change as needed
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started