gXa's blog

By gXa, history, 6 years ago, In English

Given a list of player names and their scores – {Carl, 70; Alex, 55; Isla, 40}, design a data structure that can support following modules in optimal time-

i). addEntry(string name, int value)

ii) updateEntry(string name)

iii) getEntryFromRank(int rank)

  • Vote: I like it
  • -21
  • Vote: I do not like it