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 b15a56c commit e5e4ff3Copy full SHA for e5e4ff3
solution/1900-1999/1957.Delete Characters to Make Fancy String/README.md
@@ -143,21 +143,6 @@ func makeFancyString(s string) string {
143
144
#### TypeScript
145
146
-```ts
147
-function makeFancyString(s: string): string {
148
- const ans: string[] = [];
149
- for (const c of s) {
150
- const n = ans.length;
151
- if (n < 2 || c !== ans[n - 1] || c !== ans[n - 2]) {
152
- ans.push(c);
153
- }
154
155
- return ans.join('');
156
-}
157
-```
158
-
159
-#### TypeScript
160
161
```ts
162
function makeFancyString(s: string): string {
163
let [n, ans] = [s.length, ''];
0 commit comments