/**
 * Given a list of nurse data and a list of admitted patients, find the list of patients
 * that are not present in the nurse data.
 *
 * @param nurseData A list of patient names and their corresponding days of stay.
 * @param admittedPatients A list of patient names who are admitted.
 * @return The list of patients who are admitted but not present in the nurse data.
 */
fun findUniquePatients(nurseData: List<Pair<String, Int>>, admittedPatients: List<String>): List<String> {

    // Extract the patient names from nurseData
    val nursePatients = nurseData.map { it.first }

    // Find patients who are admitted but not present in the nurse data
    val patientsNotInNurseData = admittedPatients.filter { it !in nursePatients }

    return patientsNotInNurseData
}
/**
 * Given a list of nurse data and a list of admitted patients, find the list of patients
 * that are not present in the nurse data.
 *
 * @param nurseData A list of patient names and their corresponding days of stay.
 * @param admittedPatients A list of patient names who are admitted.
 * @return The list of patients who are admitted but not present in the nurse data.
 */
fun findUniquePatients(nurseData: List<Pair<String, Int>>, admittedPatients: List<String>): List<String> {
/**
 * Given a list of nurse data and a list of admitted patients, find the list of patients
 * that are not present in the nurse data.
 *
 * @param nurseData A list of patient names and their corresponding days of stay.
 * @param admittedPatients A list of patient names who are admitted.
 * @return The list of patients who are admitted but not present in the nurse data.
 */
fun findUniquePatients(nurseData: List<Pair<String, Int>>, admittedPatients: List<String>): List<String> {

    // Extract the patient names from nurseData
    val nursePatients = nurseData.map { it.first }

    // Find patients who are admitted but not present in the nurse data
    val patientsNotInNurseData = admittedPatients.filter { it !in nursePatients }

    return patientsNotInNurseData
}