Commit c978625
Fix Collatz demo to use integer division (#1541)
- Change self.count /= 2 to self.count //= 2 in run_step method
- Ensures int state variable receives int values instead of float
- Maintains mathematical correctness of Collatz conjecture algorithm
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>1 parent fce9247 commit c978625
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments