Skip to content

Instantly share code, notes, and snippets.

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
)