101
0/304
Loading content...
An academic analytics team wants a fast way to measure score dispersion in a class snapshot.
You are given one table:
Scores columns:
Task:
Output requirements:
Supported environments:
Scores:
| student_id | student_name | assignment1 | assignment2 | assignment3 |
|------------|--------------|-------------|-------------|-------------|
| 309 | Olivia | 88 | 47 | 87 |
| 321 | Ethan | 98 | 95 | 37 |
| 338 | Ava | 100 | 64 | 43 |
| 423 | Mason | 60 | 44 | 47 |
| 896 | Nora | 32 | 37 | 50 |
| 235 | Lucas | 31 | 53 | 69 |[
{"difference_in_score": 111}
]The highest total is 230 and the lowest total is 119, so the spread is 111.
Scores:
| student_id | student_name | assignment1 | assignment2 | assignment3 |
|------------|--------------|-------------|-------------|-------------|
| 10 | Isha | 80 | 70 | 60 |
| 11 | Omar | 90 | 60 | 60 |
| 12 | Lina | 75 | 75 | 60 |
| 13 | Arjun | 40 | 50 | 60 |[
{"difference_in_score": 60}
]Totals are 210, 210, 210, and 150. Spread is 210 - 150 = 60.
Scores:
| student_id | student_name | assignment1 | assignment2 | assignment3 |
|------------|--------------|-------------|-------------|-------------|
| 901 | Zoya | 95 | 88 | 91 |[
{"difference_in_score": 0}
]With only one student, highest and lowest totals are identical.
Constraints