You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/string/string-hashing.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Doing this allows us to reduce the execution time of the string comparison to $O
16
16
17
17
For the conversion, we need a so-called **hash function**.
18
18
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$), then also their 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)$).
20
20
Otherwise, we will not be able to compare strings.
21
21
22
22
Notice, the opposite direction doesn't have to hold.
0 commit comments