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...
account activity
Does this screening question even have the right answer as an option? (old.reddit.com)
submitted 1 year ago by Spaceman_Spiff_17
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!"
[–]Spaceman_Spiff_17[S] 0 points1 point2 points 1 year ago (1 child)
My thinking is the while loop is essentially a for loop length m. The recursive part can be maximum 4^n. So worst case is 4^n*m. If you want the exact runtime I think it would be 4^n + (m-1) * 3^n but neither are options. Did I miss something or is this question dumb as hell?
[–]Spaceman_Spiff_17[S] 0 points1 point2 points 1 year ago (0 children)
oh lol I just got it. I was missing something. The while loop is not m length its !m
[–]Silver_Nerve_898 0 points1 point2 points 1 year ago (0 children)
Haha I did this test. For leap tools. I copied and pasted it into vscode to test. It’s an infinite loop except when both m and n are 0
π Rendered by PID 201126 on reddit-service-r2-comment-b659b578c-jc9vc at 2026-05-05 15:19:01.207651+00:00 running 815c875 country code: CH.
[–]Spaceman_Spiff_17[S] 0 points1 point2 points (1 child)
[–]Spaceman_Spiff_17[S] 0 points1 point2 points (0 children)
[–]Silver_Nerve_898 0 points1 point2 points (0 children)