Live data from Hacker News

Optimal Peanut Butter and Banana Sandwiches

ethanrosenthal.com

51–60 of 110 posts

Re: Optimal Peanut Butter and Banana Sandwiches

#51

I initially assumed the challenge was to fit the entire banana on the bread in a single layer; I am disappointed that problem was not solved, but it seems like it should be a relatively trivial extension of the package provided (produce a packing for [N, M] slices of banana, pick the number of slices which covers the bread without any left over pieces). (Of course, as someone who does not eat banana sandwiches, I hav…

If you want to make a PB&B that uses the entire banana, simply peel the banana, coat the flesh in PB, tear up your bread slices and adhere them to the banana.

This method is not guaranteed to use all the bread.

Re: Optimal Peanut Butter and Banana Sandwiches

#53

Wow this guy can really see something through to the end. I have had some good ideas that I give up on once things become complex but he carefully saw this “meaningless” but super difficult project through from beginning to end. That alone is a sort of sacred skill, regardless of the task.

This is something I struggle the opposite of. When I dive into something, I get super focused, to the point of it severely disrupting my life. I had a few projects in grad school that kept me up for like 2 days straight even though they weren't due for a few weeks. I think the author has that same level of manic focus. It's honestly why I can't be a programmer, it's not that I can't write good code, it's my head spac…

I think you just described genius. Hope you're using it for good.

Re: Optimal Peanut Butter and Banana Sandwiches

#54
post #46

Excellent project. Very well written and executed. Love it. I've found that I can get excellent consistency in coverage by slicing the banana vertically to get long rectangular slices and then laying the slices side-by-side - generally about 4-5 across.

You're an animal

Re: Optimal Peanut Butter and Banana Sandwiches

#55
post #52

As expected scientists never talk about the actual taste. You probably want ripeness and the peanut butter/banana sugar ratio to make sure banana flavour doesn’t overwhelm the entire taste profile.

Easily solved by analyzing the color of the banana peel and recommending a quantity of peanut butter to match

Re: Optimal Peanut Butter and Banana Sandwiches

#56
I would suggest further optimization, in that one should choose from ALL slice segments for the optimal coverage. We all know if nobody eats the rest of the banana right away, it's just going to go bad. Sure you think you'll make banana bread later, but you won't.

Re: Optimal Peanut Butter and Banana Sandwiches

#58
My father solved this problem before I was born in 1969. Peel the top of the banana as if you are going to eat it. Put peanut butter on the knife and wipe it on the top of the banana. Take a bite. Continue until the banana is gone. Ignore the bread. It more keto that way anyway.

If you really want to use the bread, mash the banana and spread it on one slice, spread the peanut butter on the other and put them together.

Re: Optimal Peanut Butter and Banana Sandwiches

#59
post #37

I am an emergency physician without any formal software training and for the last three months I’ve been trying to build a program that segments the wall of the heart from an ultrasound video and then identifies regions that aren’t moving (an early sign of heart attack). There are many similarities between this man’s project and mine. And if I had his knowledge I may have cracked my problem by now and would have new…

Do you realize that there are thousands of scientific publications in medical image processing that address exactly the same concrete problem that you have?

"Not invented here".

Re: Optimal Peanut Butter and Banana Sandwiches

#60

My father solved this problem before I was born in 1969. Peel the top of the banana as if you are going to eat it. Put peanut butter on the knife and wipe it on the top of the banana. Take a bite. Continue until the banana is gone. Ignore the bread. It more keto that way anyway. If you really want to use the bread, mash the banana and spread it on one slice, spread the peanut butter on the other and put them together…

There's something just a bit different about the sensation of biting into a slice of banana, though.
Post reply on HN