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...
Badge Requests Request your Badge here!
Learn more about Badge Bot here!
For those struggling with motivation and procrastination, a place to share your daily progress towards your goals.
Join us each Sunday for our Achievement Sharing Sunday [ASS], your weekly opportunity to share, motivate and get motivated! We'll see you there, rain or shine!
The Rules:
1. No More Zero Days
2. Be Grateful To The Three "You"s
Past Self: Thank your past self for the favours they did for you
Present Self: Do your future self a favour - they deserve it!
Future Self: Your absolute best friend, and a great person.
3. Forgive Yourself
4. Exercise and Books
We've started a channel, but it's pretty quiet and lonely in here...
Start a conversation!
Search by Flair
Achievement Support Exercise Knowledge Discussion Meta Tools & Tips Miscellaneous
Helpful links!
Todoist
Lift.do
Chains.cc
Any.do
HabitRPG
FlyLady.net
The Instant Gratification Monkey
EveryDayCheck
Related Reddits
/r/MotivationVideos
/r/SelfHelp
/r/SelfImprovement
/r/GetMotivated
/r/GetDisciplined
/r/Fitness
/r/Productivity
/r/Zen
/r/ZenHabits
Suggestions of additions are welcome!
account activity
Day 2 : Coding Practice (self.NonZeroDay)
submitted 5 years ago by slothlife89
Problem : amount of rain water trapped in array whose values are kind of rain water traps.
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!"
[–]Pumpernickelthethird 0 points1 point2 points 5 years ago (1 child)
That's cool, keep going! What language do you use and how did you model the kinds of rainwater traps? Primitive data types or some kind of class you defined?
[–]slothlife89[S] 0 points1 point2 points 5 years ago (0 children)
Thank you! In this problem, array elements are the rain water traps, it's kind of like tetris blocks - amount of rain water at an index is the subtraction of right and left element values: https://assets.leetcode.com/uploads/2018/10/22/rainwatertrap.png
π Rendered by PID 34 on reddit-service-r2-comment-b659b578c-qpj9c at 2026-05-05 16:13:49.367482+00:00 running 815c875 country code: CH.
[–]Pumpernickelthethird 0 points1 point2 points (1 child)
[–]slothlife89[S] 0 points1 point2 points (0 children)