Complete the code to get the top 3 scores from the sorted set 'game_scores'.
ZREVRANGE game_scores 0 [1] WITHSCORES
The command ZREVRANGE with start 0 and stop 2 returns the top 3 elements (0-based index).
Complete the code to get the top 5 scores in descending order from 'game_scores'.
ZREVRANGE game_scores 0 [1] WITHSCORES
ZREVRANGE returns elements in descending order. To get top 5, use stop index 4.
Fix the error in the code to get the top 3 scores with their members from 'game_scores'.
ZREVRANGE game_scores 0 [1] WITHSCORES
The stop index should be 2 to get exactly 3 elements (0,1,2).
Fill both blanks to get the top 4 scores with their members in descending order from 'game_scores'.
ZREVRANGE game_scores [1] [2] WITHSCORES
Start at 0 and stop at 3 to get top 4 elements (0,1,2,3) in descending order.
Fill all three blanks to get the top 3 scores with their members from 'game_scores' using ZREVRANGEBYSCORE for scores between 100 and 200.
ZREVRANGEBYSCORE game_scores [1] [2] LIMIT 0 [3] WITHSCORES
The command gets members with scores between 100 and 200, limiting to top 3 results.