This course has already ended.
You cannot submit this assignment

You need to sign in and enrol to submit exercises.

Assignment 4

1 point

Let’s assume that this code has already been executed:

val numbers = Vector(15, 7, 5, 27, 3, 8, 67, 28, 39, 15, 115, 23)
val byLastDigit = numbers.groupBy( _ % 10 )
val smallestGroupFirst = byLastDigit.toVector.sortBy( _._2.size )
We group the numbers by their last digit.
We sort the groups based on which of the last digits is more common.

Which of the following claims about the code are correct?

Posting submission...

Earned points

0 / 1

Exercise info

Assignment category
Graded
Your submissions
0 / 5
Deadline
Wednesday, 17 November 2021, 12:00
Late submission deadline
Friday, 15 April 2022, 12:00 (-100%)
Group size
1-2
Total number of submitters
602