We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 515b4e6 commit c8e9a28Copy full SHA for c8e9a28
errata.md
@@ -16,3 +16,20 @@ Correct code is:
16
else:
17
hash_text[i] = ((hash_text[i-1] - ord_text[i-1]) + ord_text[i+len_pattern-1]) # calculating next hash value using previous value
18
```
19
+
20
+## Chapter 3, Page 61 - Fixed the missing '/'
21
22
+There should be `//` in place of `/`
23
24
+Incorrect code is:
25
+```
26
+mid = start + (end - start)/2
27
+if arr[mid] == key:
28
+ return mid
29
30
+Correct code is:
31
32
+mid = start + (end - start)//2
33
34
35
0 commit comments