input
stringlengths 1k
1k
| output
listlengths 1
1
| id
stringlengths 41
41
|
---|---|---|
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/07/1365
Output:
| [
"0"
]
| task1403-9ab58a881cdc4f0e9000830fcf198036 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/40/1449
Output:
| [
"0"
]
| task1403-145797ba95a04ee1ade8329a4eb9226b |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/10/1333
Output:
| [
"0"
]
| task1403-d212e87934ea4317b8e770ae17031398 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/07/1854
Output:
| [
"1"
]
| task1403-ac10dc25e02a4559bc02352e3ae5b901 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/45/1421
Output:
| [
"0"
]
| task1403-a1b504f50ab9406097627c261cb98917 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/16/1484
Output:
| [
"1"
]
| task1403-52218b55f8a742179fb77b79faf780d9 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/12/1510
Output:
| [
"1"
]
| task1403-45b165a8b58a4339ac8acbeb378438be |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/19/1360
Output:
| [
"0"
]
| task1403-bcdf9f8d54e34662be1597b5c469aad9 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/20/1699
Output:
| [
"1"
]
| task1403-1497f6f5364e41aba6f10dd0558d7283 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/38/2083
Output:
| [
"0"
]
| task1403-7b1b5aa519104b42b6b48a0eea45051a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/36/1895
Output:
| [
"0"
]
| task1403-60c89be7f5f44957894af978796c1df4 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/24/1464
Output:
| [
"1"
]
| task1403-9374718072d34d5f8e162ac27b66856c |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/32/1342
Output:
| [
"0"
]
| task1403-ca5fdedbcad4478a8bbb8ccdc8ee2f7a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/27/1773
Output:
| [
"0"
]
| task1403-81077c3ad766444dbdc3b23fb121f803 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/41/1746
Output:
| [
"0"
]
| task1403-cbac8a9b02cb4a1ebe6f5b0dcca2b2b0 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/34/1383
Output:
| [
"0"
]
| task1403-2a2aa56aa7e74ed5bd53c57f9511637a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/39/1262
Output:
| [
"0"
]
| task1403-b20f18b5922e4b3782ef95ffe9cc6d04 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/27/1513
Output:
| [
"1"
]
| task1403-ed89cb9af3a541c0ae8b5554762e35af |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/43/1907
Output:
| [
"0"
]
| task1403-cc948a7bec904e6c9a3b46aedb059d6e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/15/1143
Output:
| [
"1"
]
| task1403-b0203020c67740f7a6bd11f732a2c0a3 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 01/19/1046
Output:
| [
"1"
]
| task1403-4e3093fa3b234c1ca561b69b04ce6e26 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 16/43/1694
Output:
| [
"0"
]
| task1403-15e910e26a09401f95471a39e220889b |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 12/34/1822
Output:
| [
"0"
]
| task1403-9a88dbbfd5ef431dadb504aee4894e00 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/04/1012
Output:
| [
"0"
]
| task1403-cc80b71475c3439eb62be33fa5c50ad4 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/23/1699
Output:
| [
"0"
]
| task1403-9867cf845bdf4af4aef43000a51a1618 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/14/2002
Output:
| [
"0"
]
| task1403-7b3916ad4f9947ac97f2b9d05234e753 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/42/1009
Output:
| [
"0"
]
| task1403-0b8696fa95954ffab527f77585831e25 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 07/39/1669
Output:
| [
"0"
]
| task1403-ee2129a3961c46d1887309cb7d15265e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/29/2019
Output:
| [
"0"
]
| task1403-fc1ddbe134ff4ae88c612222f01fa43e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/35/1479
Output:
| [
"0"
]
| task1403-756a2815445e48e79090ce11428dc7fe |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/08/1008
Output:
| [
"1"
]
| task1403-667903b02450419a892c297a485eb96a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/37/1313
Output:
| [
"0"
]
| task1403-2148252e724443679ec2bc470855fe43 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/43/1154
Output:
| [
"0"
]
| task1403-a03bcc63953649bfa46469b199c29af6 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 16/35/1149
Output:
| [
"0"
]
| task1403-d5cf8a5314c74883b1120d298740326e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/21/1592
Output:
| [
"0"
]
| task1403-83436ededc184108998836e7d00ecc2d |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/31/1838
Output:
| [
"0"
]
| task1403-ca87574550124982914cc870f106002c |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/37/1885
Output:
| [
"0"
]
| task1403-eb7628315e9f4611a6ba3a580dc86b2f |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/18/1245
Output:
| [
"0"
]
| task1403-d85fdd53e7a54e009b184d5249f20275 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/41/1616
Output:
| [
"0"
]
| task1403-b957e5f14d6440e786fdacd1cb93dfc5 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/19/1268
Output:
| [
"0"
]
| task1403-7f8f85b615014c00929efe82e0f33af6 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/02/1614
Output:
| [
"1"
]
| task1403-a56932913a2147d7adadb02b3974b90a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/02/1974
Output:
| [
"0"
]
| task1403-455b9f1f0e304e32bdb59478f828cd7b |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/24/1256
Output:
| [
"1"
]
| task1403-3c5f2b9af42744fcbc7078b2ce1c2d58 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 01/26/1004
Output:
| [
"1"
]
| task1403-4b4f27a3e9cf4ce7badb86a37e59c782 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/16/1904
Output:
| [
"1"
]
| task1403-bca7b2cd55de4ae483eafb59c83fa50b |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 16/29/1206
Output:
| [
"0"
]
| task1403-05862fea1b014284917edc615afaa630 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/32/1798
Output:
| [
"0"
]
| task1403-9b69d58eedcc4d3a89bc7d2ad924ae3f |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/05/1085
Output:
| [
"0"
]
| task1403-ee23a987fe8f40d8831e58721f9ea19c |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/02/1549
Output:
| [
"1"
]
| task1403-046aca9e9747462f82231e74ba14831d |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/03/1535
Output:
| [
"1"
]
| task1403-43933511625042b6bd47ed8d6084d53e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/19/1370
Output:
| [
"1"
]
| task1403-d0d1e193e9bd418384d34717b853436e |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/11/1157
Output:
| [
"0"
]
| task1403-3001fb96d0ba4a07bb1d30e7e294a791 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/45/1072
Output:
| [
"0"
]
| task1403-35eff8e52f3f462c883746f78172db1a |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/02/1275
Output:
| [
"0"
]
| task1403-90b3a94f5a994e3aa0e7ea7be13b7594 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/41/1242
Output:
| [
"0"
]
| task1403-ada8584f751148f0926ea5fc2d708740 |
Definition: In this task, you are given a date in "mm/dd/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 07/31/1284
Output:
| [
"1"
]
| task1403-3c7f5153056b4fd784c353d3296bb272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.