Medical Records: Body Temperature Range

Company: IBM Backend Developer_24may

Difficulty: easy

Problem Statement

Medical Records: Body Temperature Range A hospital exports a batch of patient medical records. Each record carries the id of the condition that was diagnosed, the patient's body temperature in degrees Fahrenheit, and the name of the doctor who made the diagnosis. Given a doctor's name and a diagnosis id, look at every record that was diagnosed by that doctor and carries that diagnosis id, and report the integer parts of the lowest and the highest body temperature among them. The integer part of a temperature is the value with everything after the decimal point discarded, so the integer part of 99.9 is 99 and the integer part of 100.0 is 100 . If no record matches both the doctor name and the diagnosis id, report 0 and 0 . The doctor name must match exactly : the comparison is case-sensitive and every character counts, so dr arnold bullock , Dr. Arnold Bullock and Dr Arnold Bullock are all different from Dr Arnold Bullock . Input Format The first line contains a single integer n — the n