Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. public class Solution {
  2.   public Solution() {
  3.     // If you need initialization code, you can write it here!
  4.   }
  5.   /**
  6.   * Return the start day for the longest sequence of days where the mean
  7.   * temperature is within five degrees.
  8.   */
  9.   public int getStartDay() {
  10.     // Todo: Write your code here!
  11.     int numDays = getNumDays();
  12.    
  13.     for(i = 0; i < numDays; i++)
  14.     {
  15.       int meanTemp = getTemperatureOnDay(i);
  16.       int temp = meanTemp;
  17.       if
  18.     }
  19.   }
  20.  
  21.   /**
  22.   * Return the end day for the longest sequence of days where the mean
  23.   * temperature is within five degrees.
  24.   *
  25.   * Note that the start and end day of the sequence may be the same.
  26.   */
  27.   public int getEndDay() {
  28.     // Todo: Write your code here!
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement