I'm struggling on some data structures practice questions.
What would be the best data structure to store this in and how would it be stored?
Also, with the chosen data structure if i want to list the players a given player has beaten or lost to how would it work?
I'm studying ahead and this is really confusing to me.
Quote:A group of chess players meet every week for chess games. They want to record who has
won a game against whom.
The following games have been played:
Player 1 vs Player 2 – winner = Player 2
Player 2 vs Player 4 – winner = Player 4
Player 2 vs Player 6 – winner = Player 6
Player 3 vs Player 4 – winner = Player 3
Player 3 vs Player 5 – winner = Player 3
Player 5 vs Player 2 – winner = Player 2
Player 5 vs Player 6 – winner = Player 5
Player 6 vs Player 1 – winner = Player 1
What would be the best data structure to store this in and how would it be stored?
Also, with the chosen data structure if i want to list the players a given player has beaten or lost to how would it work?
I'm studying ahead and this is really confusing to me.


![[Image: smfollowfixed.gif]](https://u.cubeupload.com/SIMAAS/smfollowfixed.gif)