Skip to content

Commit e540682

Browse files
authored
Trim not as easy as it seems
1 parent 407a946 commit e540682

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

topics/complex.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,7 @@ matchSum([4, 7, 1, 8, 9], 11); // [4, 7]
384384
```
385385
- what if you need return all pairs?
386386
- could you implement linear complexity ?
387+
388+
---
389+
390+
Write your out `trim()` function (obviously - do not use `String.prototype.trim`). Extended: create `trim('zxc')` function which takes list of symbols to trim.

0 commit comments

Comments
 (0)