Hi guys,
Below is my implementation of C2. A few examples I examined work just fine. But running the test kept making the kernel dead. Is there anything wrong with my implementation that results in this? Thank you so much.
ps: The try except should have no effect here. I added it to debug.
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)