Search⌘ K
AI Features

Plus One

Plus One gives you a non-negative integer as an array of digits and asks you to return the same number after adding one, including any new leading digit.

Statement

You are given a non-negative integer represented as an integer array, digits, where each element in digits[i] ...