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
import java.util.PriorityQueue | |
data class Doctor(val name: String, val consultationTime: Int, var endTime: Int = 0) | |
data class Patient(val index: Int, val startTime: Int) | |
data class Appointment( | |
val doctorIndex: Int, | |
var endTime: Int, | |
var patientsSeen: Int = 0, | |
var patientIndex: Int = 0 | |
) |