forked from TheAlgorithms/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit cbc669a
merge: Upgraded Algorithm of alpha numeric palindrome (TheAlgorithms#1006)
* feat: improved memoize function
used Map instead of object & used the JSON.stringfy method for generate a valid string as a key
* docs: modified documentation
* style: format with standard
* docs: modified stringify doc
* refactor: remove two repetition implementation
* feat: added validation, test codes
* chore: remove useless words
* feat: added types for jest
* chore: added link box
* feat: added new validation test casses & methods
* style: formated with standard
* feat: added parse method & test cases
* docs: added js docs
* chore: added default import export
* feat: imporved algorithm via replace method
* test: added two test cases
* feat: added jest type for suggestions
* feat: added `reduceRight` & `trim` method
* chore: added helper variable
* feat: added new rotation option
* Revert "chore: added helper variable"
This reverts commit 489544d.
* remove: yarn lock
* chore: fix grammer
* feat: used replace method & added test case
* feat: remove revert
* chore: added new line
* feat: optimized algo n to n / 2 & replaced test cases
* chore: update node version
* chore: set node version to lts
* chore: updated the node version & added engines prop
* resolve: removed while loop
* chore: added right shift ops comment
* chore: update comment
* chore: removed abs
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>1 parent e05b443 commit cbc669a
File tree
5 files changed
+48
-39
lines changed- .github/workflows
- String
- test
5 files changed
+48
-39
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | - | ||
17 | + | ||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | - | ||
3 | - | ||
1 | + | ||
2 | + | ||
3 | + | ||
4 | 4 |
| |
5 | - | ||
6 | - | ||
5 | + | ||
6 | + | ||
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
17 | - | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
18 | 21 |
| |
19 | - | ||
20 | 22 |
| |
21 | - | ||
23 | + | ||
24 | + | ||
22 | 25 |
| |
23 | - | ||
24 | - | ||
26 | + | ||
27 | + | ||
25 | 28 |
| |
26 | 29 |
| |
27 | 30 |
| |
28 | 31 |
| |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
32 | - | ||
35 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | - | ||
4 | - | ||
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
10 | 11 |
| |
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
18 | 16 |
| |
19 | - | ||
20 | - | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | 21 |
|
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | + | ||
38 | + | ||
39 | + | ||
37 | 40 |
| |
38 | 41 |
|
0 commit comments