Your first AI-assisted coding project

A parser accepts positive whole minutes and rejects zero. Choose one value at the accepted boundary and one rejected value, then reveal the sample answers.

Examples

Example 1

Input
Lowest accepted whole number
Expected output
1

Example 2

Input
A rejected whole number
Expected output
0

Hints and solution

Hint 1

The two sides of the first boundary are one minute apart.

Reveal worked answer

One is the lowest positive integer. Zero is a whole number, but it is outside the allowed range. Together they check both sides of the boundary.

Back to the lesson