Who lives in a Pineapple in the Algorithms Library for C? SpongeBob BinaryTreePants!

639 points · 19 comments · view on lemmy.world

19 Comments

damium@programming.dev · 119 pts · 2y (2 replies)

Right image, but under those each one below would also be wearing large pants covering each side of the subtree.

marcos@lemmy.world · 27 pts · 2y

What is the objectively correct answer. I have no idea why people keep asking that question.

abcd@feddit.de · 8 pts · 2y

A binary tree matryoshka

Taako_Tuesday@lemmy.ca · 29 pts · 2y (5 replies)

It definitely wouldn't be the left image. With legs like those, you could never pull the pants up past the first (or I guess technically last) level of branching. It would either be the big pants or a large number of seperate, smaller pants on each of the lowest branches.

lugal@lemmy.ml · 13 pts · 2y

Have you ever seen a binary tree grow? Maybe they put the pants on each level while it is the lowest one before the next level grows

Carnelian@lemmy.world · 13 pts · 2y

They could use pull-away pants that button up the back maybe

Tyoda@lemm.ee · 7 pts · 2y (1 reply)
[ removed ]
BassTurd@lemmy.world · 3 pts · 2y

The max size of required pants stretch will be the standard size for the right picture, since each leg already wraps half of the tree. That confirms viability at least, so now I think it's down to comfort, and does the stretch retract in a restful position, or does stay all loose and cumbersome?

NeatNit@discuss.tchncs.de · 1 pts · 2y

are the legs not allowed to be detached even for a moment for maintenance?

the_dopamine_fiend@lemmy.world · 21 pts · 2y (1 reply)

Somehow, JNCO has returned.

Pacmanlives@lemmy.world · 1 pts · 2y

Time to load up the ICP and Faygo

The_Picard_Maneuver@lemmy.world · 11 pts · 2y

The pirate voice in my head nearly ran out of breath singing the post title.

wise_pancake@lemmy.ca · 6 pts · 2y

First the right then the left.

It depends is the tree puts on pants before or after being populated.

s12@sopuli.xyz · 5 pts · 2y (1 reply)

Those are trousers.

SatouKazuma@programming.dev · 1 pts · 2y

Depends on the side of the Atlantic on which one resides

HotsauceHurricane@lemmy.one · 4 pts · 2y

The family pant.

palordrolap@kbin.run · 3 pts · 2y

The first one is clearly wrong because no-one (oh alright, almost no-one, Toe-Jeans Georg) wears leg-wear on our toes.

Third option: The top layers are covered by a poncho and only the eight pairs at the bottom have leg-wear. This works when considering each subtree as a separate tree in its own right, up to arguing about how many ponchos are then required.

Fourth option: The top two branches wear leg-wear and those below go in footwear of some sort.

moriquende@lemmy.world · 3 pts · 2y (1 reply)

Depends on the year.

DAMunzy@lemmy.dbzer0.com · 1 pts · 2y

I was thinking time of the year. Is it hot or cold. But then I thought, which one is for which?

Darkraisisi@feddit.nl · 2 pts · 2y

Look at this guy not putting on pants because HIS last branch (toes) prevents him. You think the cops will believe that story?