33. Yesterday and Tomorrow

Easy

Given a date string (e.g. "2016-07-01"), return a length-2 array:

  • dtype datetime64[D]
  • contents [yesterday, tomorrow], relative to that date

Input

2016-07-01

Output

['2016-06-30' '2016-07-02']

Sign in to write and run your own code.

Implement solve(...)