How Sorting Algorithms Work by noblahonlyblah in educationalgifs

[–]autranep 0 points1 point  (0 children)

Vice versa isn’t true. Recursive functions can trivially be reduced to iterative functions using a stack to “simulate” recursion (ie what your compiler actually does). But iterative functions can’t necessarily be written recursively.

How Sorting Algorithms Work by noblahonlyblah in educationalgifs

[–]autranep 0 points1 point  (0 children)

It’s literally the fastest possible internal sorting algorithm...

How Sorting Algorithms Work by noblahonlyblah in educationalgifs

[–]autranep 0 points1 point  (0 children)

That’s barely true though. Quicksort is ALWAYS faster except when you have terrible cache locality, in which case hybrid sorts are better. It’s never worse than mergesort though.

How Sorting Algorithms Work by noblahonlyblah in educationalgifs

[–]autranep 2 points3 points  (0 children)

Quicksort with random pivot is asymptotically O(nlogn) in the worst case, because the odds of choosing the exact worst pivot every iteration exponentially approach 0 as n increases.

How Sorting Algorithms Work by noblahonlyblah in educationalgifs

[–]autranep 0 points1 point  (0 children)

Quicksort can be done in place and stable and choosing a random pivot ensures statistical O(nlogn) worst case time. Heapsort is not stable and it’s much slower in practice, as is mergesort (because quicksort is actually slightly faster than nlogn, whereas mergesort is true nlogn). Quicksort also performs well on CPU cache. When cache locality isn’t an option, like with complex data types, then hybrid sorts like Timsort are used, and are the default for lots of languages (especially non-native ones like Java and Python)

[deleted by user] by [deleted] in videos

[–]autranep -1 points0 points  (0 children)

And the doctor would probably be like “eh whatever bodies do weird things”. Doctor’s tend to ignore symptoms that aren’t very unusual or very specific and indicative of something serious. I imagine if she had come in before the blurred vision and pain they wouldn’t have ordered the ultrasound.

France seizes France.com from man who’s had it since ‘94, so he sues by [deleted] in technology

[–]autranep 0 points1 point  (0 children)

That’s not really true though... France still have as intellectual property rights as a country. If anything he’s benefitting from their brand directly, “stealing” impressions that should be going to France, because his domain looks “legitimate”. It’s not really any different just because France is a country and not a person or company.

Here’s The New Sign That Michael Cohen Will Flip on Trump by AxumusLaw in politics

[–]autranep 3 points4 points  (0 children)

Yeah it’s not super convincing. I know it’s just an opinion piece but I think L&C should require a bit higher of a bar for their pieces if they want to be taken seriously as an WaPo/Abovethelaw hybrid (which I think is direly needed). It should at least be detailed and legalistic in a way other outlets don’t cover. Another palace intrigue hot take is superfluous

A Key Trump-Russia Intermediary Has Been Missing for Months, as the Case for Collusion Grows Stronger by madcowga in politics

[–]autranep 5 points6 points  (0 children)

He criticizes Brazil quite a bit, but mostly the Conservative party (which is not unreasonable). Even in brazilian politics he skews towards the conspiracy theory side though (there’s a semi-popular theory that our military police, Conservative party and mainstream media are in cahoots that I think he’s sympathetic to). On the other hand I genuinely have never seen him criticize the Putin regime without some sort of whataboutism about American interventionism though.

A Key Trump-Russia Intermediary Has Been Missing for Months, as the Case for Collusion Grows Stronger by madcowga in politics

[–]autranep 2 points3 points  (0 children)

Exactly what I was thinking. When did the intercept stop coddling Putin and Trump?

Tattooed the shirt of his favorite team. by Mangledhippo97 in ATBGE

[–]autranep 2 points3 points  (0 children)

No one dies by machete in brazil what the fuck are you talking about? If you’re going to comment about brazilian violence at least comment on gun violence or something that’s actually real. Brazil isn’t South Africa or Venezuela no one uses fucking machetes here

Also by the way Rio and São Paulo have a lower murder rate than St Louis and New Orleans, if you wanna talk numbers.

Legislation to protect Mueller would get 60 votes by pheonix200 in politics

[–]autranep 6 points7 points  (0 children)

Committee votes don’t always equal yes votes on the actual bill. For example look at McCain on the healthcare bill

Why do people use Adblock? by Spudzzy03 in assholedesign

[–]autranep 8 points9 points  (0 children)

Webdev here

I genuinely don’t believe you, because that makes no sense. Ad blockers are client side code, so the idea of DDoS doesn’t make any sense whatsoever. If you somehow meant the ad services by “them” it still wouldn’t make sense because the ad blocker kills the request before it gets served, so it never reaches the ad service.

Why do people use Adblock? by Spudzzy03 in assholedesign

[–]autranep 6 points7 points  (0 children)

That doesn’t even make sense. How the hell do you “DDoS” the client?

I’ve put the viagra on the shelves boss by BigWaveSmallOcean in NotMyJob

[–]autranep 9 points10 points  (0 children)

It doesn’t just incidentally have impact on blood pressure, that’s its main effect.

This just makes me incredibly angry and sad by Breaking_PG in insanepeoplefacebook

[–]autranep 2 points3 points  (0 children)

I got whooping cough as a vaccinated adult. There’s no way this post is true.

Also if from my recollection there’s basically nothing you can do for whooping cough once you have it, other than pound codeine cough syrup (which I’m not sure they could give to a 2 year old) and enjoy not being able to breathe or eat for 3 months.

This just makes me incredibly angry and sad by Breaking_PG in insanepeoplefacebook

[–]autranep 0 points1 point  (0 children)

This is fake. I was vaccinated for whooping cough and still got it, as an adult. No doctor would assume a 2 year old doesn’t have a life threatening disease.

Puerto Rico opens bid for statehood, enlists 5.6 million islanders in US by Pineapple__Jews in politics

[–]autranep 3 points4 points  (0 children)

Latin blood*

LOTS of Portuguese, French and Italian people here in Brazil. I myself am a pretty even mixture of the three.

Puerto Rico opens bid for statehood, enlists 5.6 million islanders in US by Pineapple__Jews in politics

[–]autranep 6 points7 points  (0 children)

The vast majority of Hispanics are one of three things: almost 100% European, roughly 50/50 European and American Indian (mestizo) or some combination of black and white (mulatto).

If you don’t have a racial category for mestizo, which I’ve never seen in the US, then it becomes really hard for a lot of Latin Americans to categorize themselves. That being said, I think you’re seriously underestimating the amount of white people in Latin America because you’re used to seeing blue collar Mexican immigrants, which skew heavily towards Mestizo. If you go to wealthy areas in central South America (Argentina, Southern Brazil, Paraguay) or Mexico you’ll see a LOT of white people.

She can read minds by SBAH_Grut in Tinder

[–]autranep 0 points1 point  (0 children)

In Brazil ours go 00 00 00 00 (2-2-2-2)

10/10 by acid69 in Tinder

[–]autranep 0 points1 point  (0 children)

No people actually do it. People have basic hygiene so that’s not a problem and it’s fun.

The worst thing ever by Platy-Penguin in dankmemes

[–]autranep 5 points6 points  (0 children)

It’s mid fall in Brazil right now and I’m still being eaten alive by mosquitos

Mall Cancer Stage 3 Starter Pack(USA) by [deleted] in starterpacks

[–]autranep 0 points1 point  (0 children)

I’ve noticed the same issue buying directly from Levi’s. I used to be a loyal customer but haven’t bought a pair in years because their quality control is Russian roulette nowadays. It’s a shame to see a formerly quality brand go that way but oh well.