Last active
June 24, 2024 07:45
-
-
Save ArneKoeckeritz/f39a8c711473f4ceb8dbea9cc1dd5e5e to your computer and use it in GitHub Desktop.
Test for candidate application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum class Sport { HIKE, RUN, TOURING_BICYCLE, E_TOURING_BICYCLE } | |
data class Summary(val sport: Sport, val distance: Int) | |
fun main() { | |
val sportStats = listOf(Summary(Sport.HIKE, 92), | |
Summary(Sport.RUN, 77), | |
Summary(Sport.TOURING_BICYCLE, 322), | |
Summary(Sport.E_TOURING_BICYCLE, 656)) | |
// Write kotlin code to print the top sport by distance excluding eBikes. | |
// println() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do NOT comment here!