Browsing: Algorithm

Gryffindor and Slytherin are about to play their annual badminton match. The best players from each house are supposed to face off on court one, the second best on court two, and so on. Slytherin’s coach knows that Gryffindor will put their players on the right courts, in order of their skill, because Gryffindors are […]