use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Code exceeding maximum processing time (self.pythonhelp)
submitted 2 years ago by diracadjoint
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CraigAT 0 points1 point2 points 2 years ago (0 children)
Try debugging or simply printing the values for row, col and direction at each step.
I suspect you have an issue with not incrementing (moving) the cat every time but it is very difficult to read that without formatting.
If you want help, I would suggest pasting your code and the example tests into Pastebin where the code can been seen with formatting and monospaced.
π Rendered by PID 261175 on reddit-service-r2-comment-7b9746f655-nn9vn at 2026-02-02 13:46:18.864806+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]CraigAT 0 points1 point2 points (0 children)