Next Number II

Identify the next number in the sequence

31, 28, 31, 30, __?

Answer is a integer. Just put the number without any decimal places if its an integer. If the answer is Infinity, output Infinity.

Feel free to get in touch with us if you have any questions

Hints
  • Complete Solution
3301 successful submissions.
Asked In:
  • Amazon
Click here to jump start your coding interview preparation