Skip to content

Commit e5e4ff3

Browse files
authored
Update README.md
1 parent b15a56c commit e5e4ff3

File tree

1 file changed

+0
-15
lines changed
  • solution/1900-1999/1957.Delete Characters to Make Fancy String

1 file changed

+0
-15
lines changed

solution/1900-1999/1957.Delete Characters to Make Fancy String/README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,6 @@ func makeFancyString(s string) string {
143143

144144
#### TypeScript
145145

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-
161146
```ts
162147
function makeFancyString(s: string): string {
163148
let [n, ans] = [s.length, ''];

0 commit comments

Comments
 (0)