Google | Phone | Valid Date
Anonymous User
2870
Jun 22, 2020
Jun 23, 2020

Given 3 integers, check whether a valid date can be formed or not.
The input does not have a specific format.

Example 1:

Input: [2000, 10, 10]
Output: true

Example 2:

Input: [1, 32, 1990]
Output: false

Example 3:

Input: [2, 2000, 30]
Output: false
Comments (11)