Skip to content

Commit d93b998

Browse files
authored
Update readme.md
1 parent c684e3e commit d93b998

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Plus_One/readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Climbing Stairs Problem
1+
# Plus One Problem
22

33
## Problem Description:
44

@@ -50,15 +50,15 @@ However, the third example introduces a **carry-over** situation when the sum ex
5050

5151
Thinking simply often leads to faster solutions 😊
5252

53-
## Climbing Stairs Problem - Case Breakdown
53+
## Plus One Problem - Case Breakdown
5454

5555
Let's try with `[1,5,6,9]`
5656

57-
reverse it -> `9651`
58-
add the carry to firs digit -> `9 + 1 = 10`
59-
Check for carry-over ->Since 10 creates a carry `(10 == 10)`, we continue propagating it.
60-
if it is carry over we need to continue carry over when we come end of the integer we can just add the 1 to end of integer
61-
Then dont forget the reverse result, thats it!
57+
- reverse it -> `9651`
58+
- Add the carry to firs digit -> `9 + 1 = 10`
59+
- Check for carry-over ->Since 10 creates a carry `(10 == 10)`, we continue propagating it.
60+
- If it is carry over we need to continue carry over when we come end of the integer we can just add the 1 to end of integer
61+
- Then dont forget the reverse result, thats it!
6262

6363
## Time and Space Complexity
6464

0 commit comments

Comments
 (0)