top of page

Looking to master object-oriented and system design for tech interviews or career growth?

  • Improve your system design and machine coding skills.

  • Study with our helpful resources.

  • Prepare for technical interviews and advance your career.

**We're in beta mode and would love to hear your feedback.

Add One To Number: Interviewbit Solution

Problem Description:

Given a non-negative number represented as an array of digits,

add 1 to the number ( increment the number represented by the digits ).

The digits are stored such that the most significant digit is at the head of the list.


If the vector has [1, 2, 3]
the returned vector should be [1, 2, 4]
as 123 + 1 = 124.



bottom of page