Commit 660c9ba
committed
revised the errors in the code
1. in function findMaxBlock definition, for i in range(0,8) instead of for i in range(0,7)
2. the initialization of cntarr is wrong, you cannot initialize an empty array like this in python, please refer to
https://docs.python.org/2/faq/programming.html#how-do-i-create-a-multidimensional-list
3. I think the "global size" in getMaxOnes function is not needed.1 parent 81891fa commit 660c9ba
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
0 commit comments