You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/reverse-string/README.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,19 @@ For example:
6
6
input: "cool"
7
7
output: "looc"
8
8
9
+
## Bonus
10
+
11
+
Preserve grapheme clusters, i.e.
12
+
13
+
```julia
14
+
myreverse("hi 👋🏾") =="👋🏾 ih"
15
+
myreverse("as⃝df̅") =="f̅ds⃝a"
16
+
```
17
+
18
+
You will probably find the `Unicode` stdlib useful for this bonus task.
19
+
20
+
To enable the graphemes test, add `const TEST_GRAPHEMES = true` to the global scope of your file.
21
+
9
22
## Source
10
23
11
24
Introductory challenge to reverse an input string [https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb](https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb)
0 commit comments