Show newer

Alright, I made a solution that actually works!

The challenge was to make a stack with a findMin function that could give you the smallest value in the stack in constant time.

This doesn't do that, but it does average better than just looking through the stack (although the tree isn't balanced, maybe I should do that...)

tagging @LottieVixen, who told me about the problem
computerfairi.es/media/GurlBHQ

this is the mastodon content you have come to crave and love 

awoo

In the end I think Twitter's allowed post length is not the problem; the problem is that our culture's media and political class have chosen as their primary forum a medium that's best suited to jokes.

Show thread

ramble 

@what wow that sounds like a ... not good situation

hot maple take 

@squirrel @Elizafox I'm kinda glad computerfairies has blocked g s stuff for the most part, it sounds horrible

I need to buy more shirts/tops!

But my only money is money that my parents are loaning me, and I feel bad about not being able to save enough while I was employed...

looking at this again: this is embarrassingly bad

don't write code like this

Show thread

@Trev@icosahedron.website oh ok...

I'm not really sure how to respond to them following me...

@LottieVixen @daggertooth@monsterpit.net @tekk I've got an O(log n) solution, but I can't comprehend how to do this without a priority queue style thing

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!