The problem collection "109 Python Problems for CCPS 109" is now complete, and no further problems will ever be added to this collection. In addition to the actual problems, the collection 109 Python problems for CCPS 109 includes fourteen bonus problems intended for students who are looking for a serious challenge. For personal reasons, it is extremely important to me that all these bonus problem specifications and their private model solutions contain no bugs, so that the checksums hardcoded in the automated tester are true and achievable by everyone who chooses to work hard to solve these problems.
I will therefore offer a bounty of 100 CAD for each bonus problem to the first person to email me ([email protected]) a working solution to pass my automated tests for that problem. The solution must pass these tests within the twenty second time limit when executed on my machine. This bounty is paid to Sick Kids Toronto. And for whatever it's worth, you get your name permanently displayed in the table below as long as this problem collection exists.
To keep this fair and interesting, each individual person can get at most one bounty. These bounties are available only for the bonus problems; solutions to the 109 actual problems do not qualify.
Problem | Bounty claimed |
110: Reverse the Rule 110 | Karel Tutsu, October 22, 2022 |
111: Aye, eye, I | John Hodgins, April 17, 2023 |
112: Count domino tilings | Maxim Olatoye, July 8, 2023 |
113: Invaders must die | |
114: Stepping stones | Alan Pangnathip, Nov 21, 2022 |
115: Ex iudiciis, lux | |
116: Flatland golf | Dennis Kaydalov, Nov 2, 2023 |
117: TextmirrororrimtxeT | "George Hotz", October 24, 2022 |
118: Hy-phen-a-tion by com-pu-ter | Cindy Hua, November 13, 2022 |
119: Jealous vs. zealous | GPT-4, March 28, 2023 |
120: Count the permorsetations | George Zhang, October 30, 2022 |
121: Count your lucky sevens | Felix Nguyen, Dec 18, 2022 |
122: Forks on the Gin Lane | Rimma Konoval, Jun 21, 2024 |
123: One, two, three, grow old with me | |
A110: String stretching | |
A111: Casinos hate this Toronto man! | |
A112: Word bin packing | |
A113: Probabilistic tic-tac-toe | |
A114: Bandwidth minimization | |
A115: Set splitting | |
A116: Domino poppers | |
A117: Knight jam | |
A118: Cubes on the trailer | |
A119: Tom and Jerry | |
A120: Pinch to a pound | |
A121: Minimal Egyptian fractions | |
A122: Unity partition | |
A123: Ants on the rod |
Starting March 2023, the author started creating another set of Python problems, separate from the main corpus of the 109 Python Problems. (One can only quit for so long without the inevitable relapse.) The following problems don't have paid bounties, but the first person to submit a working solution for each of the following problems will still get their name etched in the table below for perpetuity. Unlike the above list of bonus problems, each student is allowed to get several bounties from this list of additional problems. There are no monetary bounties for the following problems, though, just the bragging rights and the good feeling for the work well done.
Problem | Bounty claimed |
1. The Fischer King | Karel Tutsu, June 7, 2023 |
2. Multiplicative persistence | Karel Tutsu, June 7, 2023 |
3. Top of the swops | Karel Tutsu, June 7, 2023 |
4. Lowest common dominator | |
5. Discrete rounding | Karel Tutsu, June 7, 2023 |
6. Translate | Zoe Lebel-Pantazopoulos, August 4, 2024 |
7. Ifs and butts | Zoe Lebel-Pantazopoulos, August 4, 2024 |
8. Word positions | |
9. Power prefix | |
10. Deterministic finite automata | Kiran Soogrim-Maharaj, August 6, 2024 |
11. The parking lot is full | Aryan Khurram, August 6, 2024 |
12. Lychrel numbers | Zoe Lebel-Pantazopoulos, August 4, 2024 |
13. Powertrain | |
14. First fit bin packing | |
15. Count possible triangles | Kiran Soogrim-Maharaj, August 6, 2024 |
16. Arrow walk with me | Aryan Khurram, August 6, 2024 |
17. Count Friday the Thirteenths | Kiran Soogrim-Maharaj, August 6, 2024 |
18. Median filter | Kiran Soogrim-Maharaj, August 6, 2024 |
19. The magic knight of Muhammad ibn Muhammad | |
20. Man of La Cancha | |
21. Nondeterministic finite automata | Kiran Soogrim-Maharaj, August 6, 2024 |
22. Count unicolour rectangles | |
23. Count palindromic substrings | Karel Tutsu, June 13, 2023 |
24. Longest mirrored substring | Kiran Soogrim-Maharaj, August 6, 2024 |
25. Square lamplighter | |
26. Pairwise lamps | |
27. Accumulating merge | Aryan Khurram, August 6, 2024 |
28. And they walk in twos or threes or more | |
29. Ladies and gentlemen, Conway Bitty | |
30. Lowest fraction between two fractions | |
31. Reasonable filename comparison | Anonymous, July 8, 2023 |
32. List the Langford violations | Anonymous, July 8, 2023 |
33. Ten pins, not six, Dolores | Karel Tutsu, June 7, 2023 |
34. Strict majority element | Maxim Olatoye, May 20, 2023 |
35. Add like an Egyptian | |
36. Sorting by pairwise swaps | |
37. Van der Corput sequence | |
38. Condorcet election | |
39. It's a game, a reflection | Karel Tutsu, June 11, 2023 |
40. Reverse a Fibonacci-like sequence | |
41. Recamán sequence | |
42. Mian–Chowla sequence | Karel Tutsu, June 12, 2023 |
43. Stern–Brocot path | |
44. Carryless multiplication | |
45. Mū tōrere boom-de-ay | |
46. A place for everything and everything in its place | |
47. Scoring a tournament bridge hand | |
48. Manimix | Aryan Khurram, August 4, 2024 |
49. Count distinct substrings | |
50. Replacement with perfect hindsight | Aryan Khurram, August 5, 2024 |
51. Replacement with perfect foresight | |
52. When there's no item, there's no problem | Karel Tutsu, August 30, 2023 |
53. Boxed away | |
54. ’Tis but a scratch | |
55. Do or die | |
56. Arithmetic skip | |
57. Carving Egyptian fractions | |
58. Largest square of ones | Maxim Olatoye, June 15, 2023 |
59. Infection affection | |
60. Prize strings | |
61. String shuffle | Aryan Khurram, August 5, 2024 |
62. Weak Goodstein sequence | |
63. Markov distance | |
64. A very graphy caterpillar | |
65. St. Bitus‘ Dance | |
66. Digit string partition | |
67. Hofstadter's figure-figure sequences | |
68. [Be]t[Te]r [C][Al]l [Sm][Al]l | |
69. Spiral matrix | |
70. Baker–Norine dollar game | |
71. Total covered area | Karel Tutsu, September 1, 2023 |
72. Balsam for the code | Nam Nguyen, March 6, 2024 |
73. Flip those trips | |
74. Maximal disk placement | |
75. Nice sequence | |
76. Forbidden digit | |
77. Decoding the base –1 + i | |
78. Independent dominating set | |
79. Vertex cover | |
80. Shotgun sequence | |
81. Card row game | Maxim Olatoye, June 18, 2023 |
82. The remains | |
83. Count sublists with odd sums | Karel Tutsu, August 30, 2023 |
84. Tailfins and hamburgers | Nam Nguyen, March 30, 2024 |
85. Split the digits, maximize the product | |
86. Tower of cubes | Nam Nguyen, March 6, 2024 |
87. Gijswijt sequence | |
88. Sum of consecutive squares | Karel Tutsu, August 30, 2023 |
89. Balance of power | |
90. Longest zigzag subsequence | |
91. Kimberling's expulsion sequence | Nam Nguyen, April 26, 2024 |
92. Kimberling's repetition-resistant sequence | Nam Nguyen, May 1, 2024 |
93. Game with multiset | Nam Nguyen, April 26, 2024 |
94. Tower of Babel | Nam Nguyen, March 6, 2024 |
95. Make a list self-describing | Nam Nguyen, May 1, 2024 |
96. Two pins, not three, Dolores | Matt Campeau, April 2, 2024 |
97. Out where the buses don't run | “Shwnzp”, May 26, 2023 |
98. SMETANA interpreter | Abdul Rahman Al Nabulsi, April 15, 2024 |
99. The sharpest axes | Nam Nguyen, April 24, 2024 |
100. Vidrach Itky Leda | Nam Nguyen, May 1, 2024 |
101. How's my coding? Call 1-800-3284778 | Karel Tutsu, August 25, 2023 |
102. Scatter her enemies | Karel Tutsu, March 8, 2023 |
103. Sneaking | |
104. Inverse pair sums | |
105. Blocking pawns | Nam Nguyen, March 6, 2024 |
106. Boggles the mind | Mortreza Eivazi, June 30, 2023 |
107. The round number round | Shane Liu, March 31, 2024 |
108. Complete a Costas array | Karel Tutsu, August 22, 2023 |
109. Oppenhoppenheimereimer | John Hodgins, April 20, 2023 |
Starting August 2024, a third problem collection is being collected. Same rules as with the second collection.
Problem | Bounty claimed |
Multiply and sort | |
Friendship paradox | |
Lehmer code: encoding | |
Sum of square roots | |
Loopless walk | |
Split at None | Karel Tutsu, August 30, 2024 |
Lehmer code: decoding | |
Factoradical dudes | |
Gauss circle | |
Maximal palindromic integer | |
Tchuka Ruma |