Ad
  • Custom User Avatar

    Please use spoiler flags when you're giving elements of solution, anyone can see it in the dashboard.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The problem description states:

    Write a function timeForMilkAndCookies (time_for_milk_and_cookies in Ruby) that accepts a Date object, and returns true if it's Christmas Eve (December 24th)

    And provides two examples of input that should return true:

    time_for_milk_and_cookies( Date.new( 2013, 12, 24 ) ) # December 24, 2013 => returns true
    time_for_milk_and_cookies( Date.new( 3000, 12, 24 ) ) # December 24, 3000 => returns true
    

    You are to check if the date is December 24 for any year, not just 2013, as stated by bushee.

  • Default User Avatar

    I kept checking the year, because of what was in the test cases, as well as the description of the task as well. If it is only checking for the month and date, could the description and test cases not be updated for clarity?

  • Custom User Avatar

    Is this the exact code you used in your solution? You create the date in year 2013, which will fail in comparison with December 24th in any other year.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution