affiliate

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

affiliate,

amateurs


<span style="color:#323232;">def is_even(n: int):
</span><span style="color:#323232;">    if n ==0:
</span><span style="color:#323232;">        return True
</span><span style="color:#323232;">    elif n &lt; 0:
</span><span style="color:#323232;">        return is_even(-n)
</span><span style="color:#323232;">    else:
</span><span style="color:#323232;">        return not is_even(n-1)
</span>
affiliate,

here’s a constant time solution:


<span style="color:#323232;">def is_even(n: int):
</span><span style="color:#323232;">    import math
</span><span style="color:#323232;">    return sum(math.floor(abs(math.cos(math.pi/2 * n/i))) for i in range(1, 2 ** 63)) > 0
</span>

spoileri can’t imagine how long it’ll take to run, my computer took over 3 minutes to compute one value when the upper bound was replaced with 2^30^. but hey, at least it’s O(1).

affiliate,

magician never reveals his secrets

affiliate,

my mom surprised me with one of these as an early present. how do i care for it?

affiliate,

my newborn greenland shark is the only friend i’ll ever need

affiliate,

just be happy there’s no assault rifle in the capsule

affiliate,

still topologically a globe 😎

affiliate,

exactly. the trick is finding the exact bite of nugget that would leave you paralyzed and stopping right before that point

affiliate,

to be fair, a video game console that only focuses on video games isn’t very Disruptive

affiliate,

what if it had blockchain though

affiliate,

i’m sure this will work nicely with the elons plan to remove the block feature

affiliate,

i’ve only ever used nano in the early stages of a gentoo install, when it’s too early to install vim and import my dot files 😈

affiliate,

fortran is a bow and arrow. it was quite powerful and widely used in the past, but i have not met anyone in recent years who uses it other than as a hobby.

affiliate,

what i’ve gathered from people i talk to about it is that a lot of it comes down to convenience. edge comes pre installed and microsoft makes it not super straightforward to switch. i’m sure most people could figure it out if they wanted to, but lots of people don’t want to “futz around” with their computer. it also doesn’t help that edge is pretty much the only thing that works with windows search along with certain outlook and teams features.

i like to spend time messing around and customizing my computer to be better (i still use vim as my main editor), but for many people its annoying and they don’t want to “fix it if it isn’t broken”. this is all just a very long winded way of saying they don’t really care it’s not the optimal solution, as long as it works.

affiliate,

i think we all have areas of life that we treat like your dad treats his web browsers. for example, im like that when it comes to cooking. i could probably cook meals that tasted much better if i put in a bit more effort into learning different techniques and some new recipes. but i just don’t like cooking that much and the stuff i make is good enough for me. my dad is much like yours when it comes to web browsers, but he knows a lot more about cooking than i do, and he enjoys it a lot more too.

affiliate,

we should make wikipedia into an everything app

affiliate,

we must spread the values of freedom and liberty to the sink

affiliate,

it was an explosives-assisted collapse

affiliate,

yeah it was “just Ukraine”, not “Ukraine”

affiliate,

the setting would have much to be desired but at least you’d get to be keanu reeves

affiliate,

poor guy spent so much time on reddit that he forgot women exist

affiliate,

my latest microwave only has a knob you can turn to set the time. the microwave starts a couple seconds after you stop turning the knob. i’m in heaven

affiliate,

this is truly terrible. they’ve gone and made 99 = 139

affiliate,

here’s another mathematical approach (that has the added benefit of only working when x and y are both positive).

let f denote the linear functional on ℝ^2^ defined by f(1,0) = x and f(0,1) = y (and extend by linearity). then the operator norm || f || is equal to max(x,y).

NY Judge Who Bragged About Aiming Loaded Gun at Black Defendant in Court is in Big Trouble (www.theroot.com)

Highlights: In 2015, upstate New York judge Robert J. Putorti was overseeing a court hearing involving a Black defendant. Nothing out of the ordinary for a judge to do right? Except, when a Black man approached the stand “too quickly,” Judge Putorti pulled a loaded gun on him in court....

affiliate,

no way 2015 was 8 years ago. three is the highest i’ll go

affiliate,

i forgot it was spelled forty until you reminded me. wtf

affiliate,

number 5 reporting in

affiliate,

yeah eleventeen would be 111, which coincidentally is the same as tenteen one

affiliate,

can we cast mike tyson as the submarine

affiliate,

it’s but another thing to put ketchup on

affiliate,

yeah i mean how do we really know the kids were working there. maybe all 25 kids just happened to stumble into the factory and started playing with equipment right before the federal agents got there

affiliate,

we need a plan if were going to unionize his wife

affiliate,

i like to be shoe or dog, depending on my mood

affiliate,

i hope they’re able to find justice for the sex doll, it deserved better

affiliate,

unfortunately not since everything taught in high school is a lie. the only way to learn things is to read things after graduating (as long as they aren’t written by high school teachers or any other educated person)

affiliate,

even if that were true, surviving is a pretty low bar. you could get tortured every day for 10 years and still survive. what makes things even more absurd is that (like you said) tons of people didn’t even survive.

affiliate,

i think this shows how they are interested in federation. a nice strength of federation is that if there are a bunch of crazy people on one instance, you can click a button to block them from your instance.

affiliate,

woman in picture looks like the mom from zach and cody

affiliate,

you’ve made an enemy today

affiliate,

should be milk in S tier and water in A tier (good alternative for when you’re out of milk). anything else isn’t even worth mentioning

affiliate,

i don’t think anybody here is confused by how companies work. it’s more that they understand how they work, and they find it frustrating.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines