We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263460a commit f56aa3aCopy full SHA for f56aa3a
dsa-solutions/gfg-solutions/Basic/0054.md
@@ -13,7 +13,7 @@ description: "This document covers methods to remove consecutive duplicate chara
13
14
## Problem
15
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.
+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.
17
18
### Examples:
19
**Example 1:**
@@ -122,4 +122,4 @@ char* removeConsecutiveCharacter(const char* S) {
122
```
123
124
- **Time Complexity:** $O(|S|)$
125
-- **Auxiliary Space:** $O(|S|)$
+- **Auxiliary Space:** $O(|S|)$
0 commit comments