Last active
November 7, 2020 07:57
-
-
Save moallemi/bf96393d2016578913335e3d996cef00 to your computer and use it in GitHub Desktop.
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
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