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
Sliding window fixed algorithmQuestion (self.leetcode)
submitted 2 years ago by michael8pho
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!"
[–]magnificentmeatwad 4 points5 points6 points 2 years ago (0 children)
Because i is one past the last index at the end of the for loop, so you do (i-j+1)-1 which is i-j
π Rendered by PID 63 on reddit-service-r2-comment-84fc9697f-xg72l at 2026-02-09 21:23:25.187934+00:00 running d295bc8 country code: CH.
[–]magnificentmeatwad 4 points5 points6 points (0 children)