LOADING: An error occurred. Update Chrome, try Firefox, or visit this post for more details.

⚠️Reddit changed how removals work, which breaks Reveddit's website. Install the extension to track removed content:Add to chromeAdd to firefoxWhat changed?
✖︎
about reveddit
⚙F.A.Q.add-ons
r/
status
copy sharelink
[+] show filters
54
SOLUTION MEGATHREAD-🎄- 2019 Day 4 Solutions -🎄-(self.adventofcode)
submitted 6 years, 1 month ago* (edited 7 minutes after) by daggerdragon to /r/adventofcode (134.8k)
741 commentsredditother-discussionssubreddit-indexmessage modsop-focus

--- Day 4: Secure Container ---


Post your solution using /u/topaz2078's [paste](https://top...

... view full text

since 6 years, 1 month ago
5 of 5

Tip Reveddit Real-Time can notify you when your content is removed.

your account history
(check your username's removed content. why?)
Tip Check if your account has any removed comments.
view my removed comments
you are viewing a single comment's thread.
view all comments
[–][deleted]7 points6 years, 1 month ago
[removed] mod/auto

[removed]

(check your username's removed content. why?)
Restore
(1 users left)
Restore AllHide Unarchived
permalinkhide replies (2)as-ofmessage mods
[–]capn_bluebear3 points6 years, 1 month ago

I don't understand the count part, wouldn't it erroneously validate numbers like 123451 (1 has count 2)?

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–]Jayskerdoo5 points6 years, 1 month ago

No. 123451 would have never past the first conditional because there is a decreasing sequence from 5 to 1. All of the numbers will be the same or increasing so you will never see numbers out of order! Copy the python code above and print out the "passedsecond" list and you will see what I mean. That is why the count() function can be used here.

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–]capn_bluebear3 points6 years, 1 month ago

You're absolutely right! Numbers that passed the first check will have sorted digits. Thanks!

permalinkparentcontextauthor-focusas-ofpreserve
[–]jwith442 points6 years, 1 month ago

this is great!

permalinkparentcontextauthor-focusas-ofpreserve
r/revedditremoved.substack.com
🚨 NEWS 🚨
✖︎

Important: Reddit Changed How Removals Work

A recent Reddit update makes mod-removed content disappear from profile pages, which breaks Reveddit's website.

Install the browser extension to receive removal alerts.

Add to chromeAdd to firefox

What changed?

r/revedditremoved.substack.com