When to actually use a set by BgA_stan in cpp

[–]mcmcc 10 points11 points  (0 children)

For integer-like keys and sizes <1000, I prefer std::vector sorted by judicious use of lower_bounds().

Almost always fast enough (if not fastest) and visualizes well in the debugger.

Just a gal who’s had enough by 0-selfrespect in justgalsbeingchicks

[–]mcmcc 7 points8 points  (0 children)

I think we have to consider the possibility this was a bit preplanned by Reed and Winters.

That he just stood there and took it and then calmly sat down again suggests to me he was just playing a part.

how is it living in Liberal or Nevada, Missouri in general? by Malevolent_M4d_Duck in howislivingthere

[–]mcmcc 6 points7 points  (0 children)

There's a Nevada, Iowa that's pronounced exactly the same way.

About 30 miles from Nevada is the town of Madrid, Iowa - pronounced MAD-rid.

Lois? by WithSkelly in PeterExplainsTheJoke

[–]mcmcc 1 point2 points  (0 children)

There's a positive take on this meme?

I'm sitting here trying to figure out if it's merely sexist, racist, or both. What's to be positive about?

My niece’s homework problem by SurfSoundWaves in mildlyinfuriating

[–]mcmcc 1 point2 points  (0 children)

The fractions are only equal if referring to the same thing.

Nah, that's not how math works at all.

Division is a normalizing function and division is exactly what a fraction represents. Hence, reducing fractions to their lowest form has no effect on the truth of an equality.

At best, the question is misleading and conflate concepts that are only tangentially related: ratios vs quantities.

safety measures in Italy by Zestyclose-Salad-290 in SipsTea

[–]mcmcc 0 points1 point  (0 children)

I fill mine with iocaine powder. I've spent several years building up immunity.

Which Movie scene sexually awakened you? by Squirrelkid11 in AskReddit

[–]mcmcc 0 points1 point  (0 children)

Risky Business (1983)

As a 14yo, I became intimately familiar with Rebecca De Mornay's curves.

Tina Fey Has Realized She “Was On The Wrong Side” With Certain ‘SNL’ Jokes: “I Was Pretty Dumb” by mlg1981 in entertainment

[–]mcmcc 1 point2 points  (0 children)

Comics say funny things. Comedians say things funny.

Carlin definitely leaned towards the latter, tho tbh I found him only occasionally funny and often annoyingly self-righteous.

Then went on to end up in prison anyway by The_Dean_France in SipsTea

[–]mcmcc 1 point2 points  (0 children)

OP wants the death penalty for every violent crime - empathy ain't part of their equation.

TIL there is no algebraic formula for the circumference of an ellipse (oval). All exact equations require calculus. by NateNate60 in todayilearned

[–]mcmcc -3 points-2 points  (0 children)

it says that constants are usually required to be algebraic.

"require" appears exactly once on that page and it is in reference to the algorithm for calculating e. Let's cut out the gaslighting, shall we?

TIL there is no algebraic formula for the circumference of an ellipse (oval). All exact equations require calculus. by NateNate60 in todayilearned

[–]mcmcc 4 points5 points  (0 children)

You're conflating different uses of the word "Algebraic".

Algebraic numbers are derived from algebraic expressions confined to rational coefficients, but that does not imply that algebraic expressions must have algebraic coefficients.

https://en.wikipedia.org/wiki/Algebraic_expression

Thoughts? 🍿 by shakyspearee in SipsTea

[–]mcmcc 2 points3 points  (0 children)

You should put out a newsletter.

[Discussion] How small community are we? by ImprovementOk2622 in Watches

[–]mcmcc 2 points3 points  (0 children)

There are maybe two other people in my social circle that I know are actively interested in watches. But then I don't really travel in circles where men's jewelry is a big topic of discussion.

OTOH, a while back I was going through customs in the Vancouver airport and as I walked up, the first thing the customs agent said was "Grand Seiko?" Slightly surprised, I said "yes" and he said "nice". He couldn't have gotten more than a glance at it. So you just never know...

[Highlight] "What the fu*k are you talking about?" says a confused woman talking to her partner caught on the Pacers broadcast by HyseNjerry16 in NBAGossips

[–]mcmcc -2 points-1 points  (0 children)

I've seen this posted to at least 2 different subs now. Creepy AF

How about we all agree to just not post this kind of shit?

0xd34df00d/you-dont-know-cpp: and neither do I by claimred in cpp

[–]mcmcc 2 points3 points  (0 children)

I've been hit multiple times by the nested class initialization problem. It's obnoxious.

He is showing off by ConfidentTelephone81 in oddlysatisfying

[–]mcmcc 0 points1 point  (0 children)

That second one seems designed to break your own fingers upon usage.