I wanna create a list using an array data structure and link list data structure as well.
this list is about Tetris Game which keeps the user’s name, level, score and lines. like this below:-
Name | Level | Score | Lines
Jazzy | 8 | 25081 | 211
Peter | 7 24099 | 202
Dave | 6 | 22188 | 199
Cindy | 5 20765 | 178
Jaskiret | 4 | 18882 | 165
Robbie | 4 | 17339 | 145
Elton | 3 | 14328 | 134
Mel | 3 | 12590 | 125
Prince | 3 | 9439 | 102
Aaron 2 | 5628 | 88
NOTE:-This list is only maintained for the top 10 users with the highest scores.
If a score achieved is higher than the 10th position, then the new score will replace the old score.
The ranking is sorted in a descending order
Please help me...!!