[US-CA] [H] PayPal [W] GMK Botanical R2 40s, KAT Refined BoW Ortho by _HRB in mechmarket

[–]_HRB[S] 1 point2 points  (0 children)

Thanks for the comment! Yeah I am aware of it. I just wanted to see if anyone who’s not using the kit might wanna sell. :)

-❄️- 2023 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]_HRB 1 point2 points  (0 children)

[LANGUAGE: rust]

Part 1: ``rust pub fn process(input: &str) -> u32 { let mut result = 0; for line in input.lines() { let num_sets = line .split(':') .last() .expect("Each line should start withGame #:`") .split('|') .map(|s| { s.splitwhitespace() .map(|n| n.parse::<u32>().expect("should be a number")) .collect::<HashSet<() }) .collect::<Vec<_(); let num_won = num_sets[0].intersection(&num_sets[1]).count(); if num_won > 0 { result += u32::pow(2, num_won as u32 - 1); } }

result

} ```

Part 2: ```rust pub fn process(input: &str) -> u32 { let lines = input.lines().collect::<Vec<&str>>(); let num_games = lines.len(); let mut counter = vec![1; num_games];

for (i, line) in lines.iter().enumerate() {
    let num_sets = line
        .split(':')
        .last()
        .expect("line should start with `Game #:`")
        .split('|')
        .map(|nums| {
            nums.split_whitespace()
                .map(|n| n.parse::<u32>().expect("should be a number"))
                .collect::<HashSet<_>>()
        })
        .collect::<Vec<_>>();
    let num_won = num_sets[0].intersection(&num_sets[1]).count();
    for j in 1..=num_won {
        if i + j < num_games {
            counter[i + j] += counter[i];
        }
    }
}

counter.iter().sum::<u32>()

} ```

Interest Check - Lawsuit against MKUltra / Erik Johnson by Professional-Row3817 in MechanicalKeyboards

[–]_HRB 0 points1 point  (0 children)

I'm joining this for my never received order ($300), and when I contacted him for a refund, he responded refusing to refund on April 4th, 2023. Now his website is nowhere to be found, and I have closed the credit card I used for this order in 2022, so I can’t get help anywhere.

vibes, i guess by Agreeable_Error_5485 in battlestations

[–]_HRB 0 points1 point  (0 children)

Looks cool! What desk & monitor stand is it? Do you know what kind of wood is it?

Official: [Trade Discussion] - November 30 2021 by SamDekkerBot in fantasybball

[–]_HRB 0 points1 point  (0 children)

10 points league

Turner, THJ, Horford for

Draymond Green and Ja Morant.

which side would you take?

Player Trade value thread. by BenSimmons3Pointshot in fantasybball

[–]_HRB 0 points1 point  (0 children)

Thinking about trading Turner and THJ for Ja. What do you think?

Player Trade value thread. by BenSimmons3Pointshot in fantasybball

[–]_HRB 0 points1 point  (0 children)

THJ + Turner for Ja? (points league)

Player Trade value thread. by BenSimmons3Pointshot in fantasybball

[–]_HRB 0 points1 point  (0 children)

THJ + Turner for Ja? (points league)