Dont have access to those stats in the database so adding on voting is the best I can do
Theres a post read table but its only people who have explicitly marked something as read and is way less than the post likes
Dont have access to those stats in the database so adding on voting is the best I can do
Theres a post read table but its only people who have explicitly marked something as read and is way less than the post likes
For anybody interested, the monthly active users including voters is 131,150
(131k)
The one in the graph only takes into account people who have made a post or comment
Edit: The halfyear active users including voters is 253,166
(253k)
I changed the algorithms in programming.dev to take into account voters in the activity. Since stats are all calculated locally you can view any community from programming.dev to get the monthly active users including that change
e.g. https://programming.dev/c/[email protected] shows 27.8k users/month on p.d which is almost as much as the value here for all of lemmy excluding voters
Note you can put this on a separate post and should get some responses from that
(this is supposed to be for solutions only so people arent browsing it to solve help requests)
Yeah tried to golf it a bit so its not very readable
Seems like the site doesn't track characters though so won't do that for future days
It basically just loops through every character on a line, if it's a number it sets last to that and if its not a number it checks if theres a substring starting on that point that equals one of the 10 strings that are numbers
Started a bit late due to setting up the thread and monitoring the leaderboard to open it up but still got it decently quick for having barely touched rust
Probably able to get it down shorter so might revisit it
[Rust] 11157/6740
use std::fs;
const m: [(&str, u32); 10] = [
("zero", 0),
("one", 1),
("two", 2),
("three", 3),
("four", 4),
("five", 5),
("six", 6),
("seven", 7),
("eight", 8),
("nine", 9)
];
fn main() {
let s = fs::read_to_string("data/input.txt").unwrap();
let mut u = 0;
for l in s.lines() {
let mut h = l.chars();
let mut f = 0;
let mut a = 0;
for n in 0..l.len() {
let u = h.next().unwrap();
match u.is_numeric() {
true => {
let v = u.to_digit(10).unwrap();
if f == 0 {
f = v;
}
a = v;
},
_ => {
for (t, v) in m {
if l[n..].starts_with(t) {
if f == 0 {
f = v;
}
a = v;
}
}
},
}
}
u += f * 10 + a;
}
println!("Sum: {}", u);
}
they start out easy and get harder as time goes on. Theyre intended for all levels due to that and theres two different difficulties per day (the harder one being unlocked when you do the easy one). Basically anyone can do day 1
Heres stats for how many people completed each day last year https://adventofcode.com/2022/stats
Update: Ive make a new leaderboard with code 3316962-6587d422 that has a name that isnt just my username (for some reason AoC only lets the leaderboard be an account name) since theres not many people on it currently and so its easy to find when the events going on
If you joined the last one rejoin this new one
yep, you can do them anytime after theyre unlocked and you dont have to do all of them
mostly different forms of edm for the 5 tracks there
the majority of things I listen to are indie game soundtracks
The 118k is half year aka 6 months
The one around 35k is month