This is a verified interview question from Atlassian. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Predict Hourly Temperature - Atlassian Online Assessment" covers key patterns like Other.
"### Problem Given the hourly temperature data for each 24 hour period in p prior days spanning from startDate to endDate inclusive, predict the hourly temperature data for the next n days starting the first hour after endDate. ### Function Description Complete the function predictTemperature in the editor below. The function must return an array of floating-point numbers, one predicted temperature for each hour of n days immediately following endDate in chronological order. predictTemperature has the following parameter(s): - startDate: a string in the format yyyy-mm-dd - endDate: a string in the format yyyy-mm-dd - temperature: an array floating-point numbers(0)...temperature(24 *p)-1] which represent the temperature at each yyyy-mm-dd hh: 00 timestamp in the inclusive range from startDate to endDate. - n: the integer number of days to predict ### Input - startDate: string - endDate: string - temperature: array of floats - n: integer ### Output - An array of floating-point numbers representing the predicted temperatures for the next n days. "
Join thousands of developers practicing for Atlassian.