Ad
  • Custom User Avatar

    This example is from the description:

    Input: [0, 1, 0, 0, 1, 1, 0]
    
    Output: "mon, thu and Fri"
    

    If we are supposed to put "close" days first, then why is the output "mon, thu and Fri" but not "thu, fri and mon"?

  • Custom User Avatar

    Borrowed this example from anter69:

    Input: [1, 0, 0, 1, 1, 0, 1]: 'sun, wed, thu and sat' should equal 'sat, sun, wed and thu'
    

    I think this case needs more clarification.

    There are two pairs of "close" days. So what makes the answer "sat, sun, wed and thu" but not "wed, thu, sat and sun"?