
Episode 135: đ¸đŽ Slovenia đ¸đŽ 2023 Road Trip!
Algorithms + Data Structures = Programs
00:00
How to Solve a Speeding Ticket Problem in C++
In the Q language, this is known as distinct. In Rust, it's known as deduplicate. We don't actually have this function in C++, uh, at least in the standard algorithms. So you get rid of one of the twos, one of the threes, and you're left with two, three, five. And then you just, uh, do a count of that. Yeah. Um, we are definitely going to get some speeding tickets. Uh, no, I don't think so. Look, it's got a little happy thing. Oh, no, it'sgot a sad face. There was a little like, check your speed sign
Transcript
Play full episode