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: problems/2582/katie.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ I took a couple examples and wrote them down in a grid like so:
7
7
|---|---|---|---|
8
8
| x | 1 | 2 | 3 |
9
9
| 6 | 5 | 4 | x |
10
+
| x | 7 | 8 | 9 |
10
11
| . | . | . | . |
11
12
12
13
Which made me realize it was a parity problem. If you take `n-1` as your divisor, the quotient will tell you what row it ends up on and the remainder will tell you how many indeces in from the edge you have to go (the direction changes based on the parity of the quotient).
0 commit comments