Skip to content

Commit f56aa3a

Browse files
authored
Update 0054.md
1 parent 263460a commit f56aa3a

File tree

1 file changed

+2
-2
lines changed
  • dsa-solutions/gfg-solutions/Basic

1 file changed

+2
-2
lines changed

dsa-solutions/gfg-solutions/Basic/0054.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: "This document covers methods to remove consecutive duplicate chara
1313

1414
## Problem
1515

16-
Given a string S. For each index i(1<=i<=N-1), erase it if s[i] is equal to s[i-1] in the string.
16+
Given a string S. For each index `i(1<=i<=N-1)`, erase it if s[i] is equal to s[i-1] in the string.
1717

1818
### Examples:
1919
**Example 1:**
@@ -122,4 +122,4 @@ char* removeConsecutiveCharacter(const char* S) {
122122
```
123123

124124
- **Time Complexity:** $O(|S|)$
125-
- **Auxiliary Space:** $O(|S|)$
125+
- **Auxiliary Space:** $O(|S|)$

0 commit comments

Comments
 (0)