Skip to content

Instantly share code, notes, and snippets.

@ArneKoeckeritz
Last active June 24, 2024 07:45
Show Gist options
  • Save ArneKoeckeritz/f39a8c711473f4ceb8dbea9cc1dd5e5e to your computer and use it in GitHub Desktop.
Save ArneKoeckeritz/f39a8c711473f4ceb8dbea9cc1dd5e5e to your computer and use it in GitHub Desktop.
Test for candidate application
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()
}
@ArneKoeckeritz
Copy link
Author

ArneKoeckeritz commented Mar 24, 2021

Do NOT comment here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment