Skip to content

Instantly share code, notes, and snippets.

@moallemi
Last active November 7, 2020 07:57
Show Gist options
  • Save moallemi/bf96393d2016578913335e3d996cef00 to your computer and use it in GitHub Desktop.
Save moallemi/bf96393d2016578913335e3d996cef00 to your computer and use it in GitHub Desktop.
data class Shop(val name: String, val customers: List<Customer>)
data class Customer(val name: String, val city: City, val orders: List<Order>)
data class Order(val products: List<Product>, val isDelivered: Boolean)
data class Product(val name: String, val price: Double)
data class City(val name: String)
fun getCityThatMostCustomersAreFrom(): City? {
TODO()
}
fun getCustomerWithMaximumNumberOfOrders(): Customer? {
TODO()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment