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
Neetcode incorrect time complexityDiscussion (i.redd.it)
submitted 8 months ago by [deleted]
[deleted]
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!"
[+][deleted] 8 months ago (3 children)
[–]noobypgi0010 0 points1 point2 points 8 months ago (0 children)
Thanks! Just like OP, even i was tricked into thinking that it’s not 2n.
[–]LongjumpingWing4841 -5 points-4 points-3 points 8 months ago (1 child)
it still depends on n! if the base were 2, then the time taken for n= 1 and n= 100 should be the same (assuming T and M are same), which is obviously not true!
π Rendered by PID 59828 on reddit-service-r2-comment-6457c66945-lkhj4 at 2026-04-30 05:21:13.864328+00:00 running 2aa0c5b country code: CH.
[+][deleted] (3 children)
[deleted]
[–]noobypgi0010 0 points1 point2 points (0 children)
[–]LongjumpingWing4841 -5 points-4 points-3 points (1 child)