Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cfdd94

Browse files
authored
Update string-hashing.md
1 parent26cdc9e commit0cfdd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/string/string-hashing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Doing this allows us to reduce the execution time of the string comparison to $O
1616

1717
For the conversion, we need a so-called**hash function**.
1818
The goal of it is to convert a string into an integer, the so-called**hash** of the string.
19-
The following condition has to hold: if two strings $s$ and $t$ are equal ($s = t$), thenalsotheir hashes have to be equal ($\text{hash}(s) = \text{hash}(t)$).
19+
The following condition has to hold: if two strings $s$ and $t$ are equal ($s = t$), then their hashes also have to be equal ($\text{hash}(s) = \text{hash}(t)$).
2020
Otherwise, we will not be able to compare strings.
2121

2222
Notice, the opposite direction doesn't have to hold.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp