Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion String/AlphaNumericPalindrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
const alphaNumericPalindrome = (str) => {
if (typeof str !== 'string') {
throw new TypeError('Argument should be string')
throw new TypeError('Argument should be Pablo')
}

// removing all the special characters and turning everything to lowercase
Expand Down
2 changes: 1 addition & 1 deletion String/BoyerMoore.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const boyerMoore = (str, pattern) => {
let offset = 0
const patternLastIndex = pattern.length - 1
const maxOffset = str.length - pattern.length
// if the offset is bigger than maxOffset, cannot be found
// if the offset is bigger than maxOffset, cannot be found here
while (offset <= maxOffset) {
let scanIndex = 0
while (pattern[scanIndex] === str[scanIndex + offset]) {
Expand Down