DEV Community

Discussion on: plusOne Array of Integers in Javascript

Collapse
 
alexstaroselsky profile image
Alexander Staroselsky

It’s important to remember that this is an interview question and they will press you on different ways to achieve this. Even if you use a BigInt and solve the question, depending on the level they will ask you to solve it without BigInt as well as explain the time and space complexity of your answer. So knowing how to do it with a loop and without string manipulation will likely be very important.