Skip to content

Commit 7d13e68

Browse files
committedJan 22, 2022
README fixes.
1 parent 80d2f50 commit 7d13e68

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎src/algorithms/cryptography/caesar-cipher/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Caesar Cipher Algorithm
22

3+
_Read this in other languages:_
4+
[_Русский_](README.ru-RU.md)
5+
36
In cryptography, a **Caesar cipher**, also known as **Caesar's cipher**, the **shift cipher**, **Caesar's code** or **Caesar shift**, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of `3`, `D` would be replaced by `A`, `E` would become `B`, and so on. The method is named after Julius Caesar, who used it in his private correspondence.
47

58
![Caesar Cipher Algorithm](https://upload.wikimedia.org/wikipedia/commons/4/4a/Caesar_cipher_left_shift_of_3.svg)

‎src/algorithms/linked-list/traversal/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Linked List Traversal
22

33
_Read this in other languages:_
4-
[_Русский_](README.ru-RU.md)
4+
[_Русский_](README.ru-RU.md),
55
[中文](README.zh-CN.md)
66

77
The task is to traverse the given linked list in straight order.

‎src/algorithms/string/knuth-morris-pratt/knuthMorrisPratt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function knuthMorrisPratt(text, word) {
4343
if (text[textIndex] === word[wordIndex]) {
4444
// We've found a match.
4545
if (wordIndex === word.length - 1) {
46-
return textIndex - word.length + 1;
46+
return (textIndex - word.length) + 1;
4747
}
4848
wordIndex += 1;
4949
textIndex += 1;

0 commit comments

Comments
 (0)
Please sign in to comment.