forked from TheAlgorithms/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 02585f5
BogoSort.js: Simplify Array.isSorted() and add doctests
As discussed at TheAlgorithms#164 (comment)
Also related to add doctests as discussed in TheAlgorithms#142 1 parent 86b3622 commit 02585f5
1 file changed
+8
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
6 | 14 |
| |
7 | 15 |
| |
8 | 16 |
| |
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | 17 |
| |
15 | 18 |
| |
16 | 19 |
| |
|
0 commit comments