Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- public Solution() {
- // If you need initialization code, you can write it here!
- }
- /**
- * Return the start day for the longest sequence of days where the mean
- * temperature is within five degrees.
- */
- public int getStartDay() {
- // Todo: Write your code here!
- int numDays = getNumDays();
- for(i = 0; i < numDays; i++)
- {
- int meanTemp = getTemperatureOnDay(i);
- int temp = meanTemp;
- if
- }
- }
- /**
- * Return the end day for the longest sequence of days where the mean
- * temperature is within five degrees.
- *
- * Note that the start and end day of the sequence may be the same.
- */
- public int getEndDay() {
- // Todo: Write your code here!
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement