Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Commitd920e7f
refactor: reduce code duplication in
* tests: add tests checking if floodFill funtions throw when location is outside* refactor: reduce code duplication by adding `checkLocation` to `FloodFill`* refactor: add and use `isInside`Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>* Deduplicate further---------Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>FloodFill
(#1645)1 parentd02e402 commitd920e7f
2 files changed
+41
-31
lines changedLines changed: 28 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
23 | 44 |
| |
24 | 45 |
| |
25 | 46 |
| |
| |||
34 | 55 |
| |
35 | 56 |
| |
36 | 57 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 58 | + | |
45 | 59 |
| |
46 | 60 |
| |
47 | 61 |
| |
| |||
65 | 79 |
| |
66 | 80 |
| |
67 | 81 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 82 | + | |
76 | 83 |
| |
77 | 84 |
| |
78 | 85 |
| |
| |||
98 | 105 |
| |
99 | 106 |
| |
100 | 107 |
| |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
| 108 | + | |
| 109 | + | |
108 | 110 |
| |
109 | 111 |
| |
110 | 112 |
| |
| |||
120 | 122 |
| |
121 | 123 |
| |
122 | 124 |
| |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
| 125 | + | |
| 126 | + | |
130 | 127 |
| |
131 | 128 |
| |
132 | 129 |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 |
| |
25 | 38 |
| |
26 | 39 |
| |
|
0 commit comments
Comments
(0)