Skip to content

Instantly share code, notes, and snippets.

@ArneKoeckeritz
Last active August 7, 2026 21:24
Show Gist options
  • Select an option

  • Save ArneKoeckeritz/f39a8c711473f4ceb8dbea9cc1dd5e5e to your computer and use it in GitHub Desktop.

Select an option

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

ArneKoeckeritz commented Mar 24, 2021 •

Copy link
Copy Markdown
Author

Do NOT comment here!

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