Skip to content

Commit bb2b011

Browse files
committed
docs(*): add pending algorithm files
1 parent 1282ade commit bb2b011

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

algorithms/searching/hash-table/SeparateChainingHash.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ separateChainingHash.put("teste", 0)
99

1010
assert.deepEqual(separateChainingHash.get("Guilherme"), 123)
1111
assert.deepEqual(separateChainingHash.get("NotExistentKey"), null)
12-

algorithms/string/Char.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Char {
2+
charAt(string, d) {
3+
if (d < string.length) {
4+
return string.charAt(d)
5+
} else {
6+
return -1
7+
}
8+
}
9+
}
10+
11+
module.exports = Char

0 commit comments

Comments
 (0)