From what I understand there was no change of base within the solution code. Author just used the base conversion function to prepare some test inputs.
"The input array must contain a string representations of the numbers. The programmer can use whatever representation they see fit"
Allowing arbitrary string based representation of numbers also means that whole task becomes a bit silly. Why stop at base 15, when you could use what I call the "FizzBuzz" number system.
In fizzbuzz number system the divisibility by 3 and 5 is encoded in first symbols of number. Something like 1="1", 3="F", 5="B", 10="B2", 30="FB2", 1000="B200". Digits represent rest of the number you get after dividing it by 3 and 5 if possible.
I’m only friends with people I know on Facebook, so I’m mostly see ads on that site. There’s a feed to just see stuff your friends post, but for some reason the site defaults to this awful garbage ad spam feed (no surprise really).
Do people still post things on Facebook? I don't know because I haven't used it, ever, but I've heard that Meta has turned it into a platform mostly for passively consuming algorithmically-driven content instead of sharing your day on your News Feed.
The posts from my friends are all politics and babies, which is not really interesting. But I guess I can’t really complain, that’s what’s going on in their lives.
I mean if the left wanted to play as dirty as the right, could they just have a token candidate running with Obama as VP, who makes it clear they will resign the presidency to the VP on day one?
Not sure how many 417-megapixel images are out there where this would be something someone works on "over a weekend". We just need the right person to come along at the right time to think it would be a cool thing to do just because.
I've spoken to a few folks in middle management there, and some senior engineers, and it's exactly this story.
So far as they can figure there aren't many middle managers actually pushing for this.
It's all senior leadership trying valiantly to recapture the "Day 1" mentality that process and procedures have beaten out of the company.
The clueless upper management are serving their wealthy owners who have a commercial real estate portfolio that is losing them huge amounts of money unless they can get the little people back in the offices.
Great many folks are completely ineffective in remote setting. Some are not but many are. Simple as that. No real estate mogul conspiracy theories necessary
Are there studies to this effect? Any empirical evidence companies can give plotting productivity decline and subsequent increase after RTO? Or is it all just vibes?
How would you even do a study like that? Besides, looking at scientific studies is not how businesses make decisions. They sometimes use studies as justification but there's a difference.
Well, presumably they own the offices that their staff are returning to.
But I'm more talking about wealth funds that own commercial real estate that are also shareholders in Amazon, quietly having a word with execs about how to get the workers back in the offices.
You know, the old "you should come for a weekend to the country and meet a few people", the people turn out to be incredibly rich and connected, and all they want from you is this little favour where you get all your people back in the office. Just for a while so they have the chance to unload their commercial real estate portfolio without taking a huge loss.
Doesn’t sound very plausible to me unless you have an actual connection for either speculation. We’re talking about tens of thousands of employees here.
My understanding from the article and the general theory of Superorganisms is that it’s not exactly true that “dying when stinging confers fitness”. Rather, dying when stinging is just not a huge penalty when you’re talking about non-reproducing members of a colony. So, while it may be a good thing for bees to evolve the ability to survive stinging, the selective pressure is not as large as one might intuitively expect.
Maybe a better title for the post would be something like, “Isn’t it weird that bees die when they sting? Shouldn’t they have evolved away from that?”
This presumes that proto-bees had stingers that killed them before being super organisms, so that the obvious survival disadvantage that dying after a successful attack brings was compensated by the hive life rather than by surviving the sting.
I'm not at all sure this is true - I don't know the evolutionary history of bees, but it seems unlikely that some kind of solitary proto-bees would have died after a sting. And even if this were true, we should still wonder why that proto-bee evolved to have this suicide stinger in the first place.
"It's not a big disadvantage to survival" can't be the explanation for a trait, unless that trait is a remnant from an ancestor where it brought an advantage (like the hip bones in whales - hip bones are obviously useful in land-based mammals, and whales are descendants of those).
Sp the question is: why did some organism ever evolve a stinger that kills it, how was that ever something that made some organism survive better than its brethren that didn't have this trait?
> This presumes that proto-bees had stingers that killed them before being super organisms, so that the obvious survival disadvantage that dying after a successful attack brings was compensated by the hive life rather than by surviving the sting.
I don't see how you arrived at this conclusion, this logic seems to be flawed.
Of course it can be an explanation for a trait. If you are genetically predisposed to high cholesterol, is that advantageous or disadvantageous? There's simply too little pressure to do anything about it.
Phenotypes aren't required to change in the smallest imaginable step. It's not implausible that nature decided "hey this next bee gets some furry yellow stripes, but also barbs" and here we are.
Not everything is optimal in the extreme. For all we know there have been many, many bees without barbs, but the bar to pass that on as an advantage is very high. The odds of a bee reproducing aren't even that high to begin with.
> Of course it can be an explanation for a trait. If you are genetically predisposed to high cholesterol, is that advantageous or disadvantageous? There's simply too little pressure to do anything about it.
If barbed stingers were a variation that occurred in some individual bees, but many other bees didn't have them, like predisposition to cholesterol in humans, then I'd agree.
But a trait can't be universal in a species, and even in many related species, unless there is explicit selective pressure for that trait, or if it's a remnant from a common ancestor that had it. Your high cholesterol predisposition example is actually perfect, it shows what happens with traits that don't have significant pressure for or against them: they remain confined to a subset of the population.
> Phenotypes aren't required to change in the smallest imaginable step. It's not implausible that nature decided "hey this next bee gets some furry yellow stripes, but also barbs" and here we are.
They generally are. The likelihood of a random mutation that produces several phenotypal changes but leaves the organism still viable is extremely low.
> If barbed stingers were a variation that occurred in some individual bees, but many other bees didn't have them, like predisposition to cholesterol in humans, then I'd agree.
What makes you believe they are not a "variation" in individual bees? Colony genetics are fascinating and can facilitate some pretty extreme variation.
Could a single queen's mutation be responsible for all barbs? You have some hidden constraints here that I don't think we agree on.
> They generally are. The likelihood of a random mutation that produces several phenotypal changes but leaves the organism still viable is extremely low.
This is simply wrong. There are always plenty of potential mutations that cripple viability, sure. But pleiotropy in general is relatively common. In some species more than others.
Your reasoning here is heavily flawed. You firmly believe evolution and genetics work in a particular way that simply does not reflect reality. You are putting your belief in "survival of the fittest" first. I encourage you to broaden your horizons.
This presumes that proto-bees had stingers that killed them before being super organisms
I don’t know where you got that. It seems perfectly plausible that the stingers evolved in the superorganism, and that the selective pressure was something like “drones protect the hive via stingers which kill them” versus “drones can’t sting at all”.
This is a different argument, one which I can agree with. I was specifically saying that the argument for how a species acquired a universal trait can't be "because it didn't hurt their fitness that much", you have to have positive pressure for a trait to spread to the entire species (or it must be a trait left over from an ancestor where it had these pressures).
> "It's not a big disadvantage to survival" can't be the explanation for a trait
Why not? Honest question.
Intuitively, I'd say that there are plenty of traits that propagate as long as they aren't expensive in terms of genetic survival. It's the nature of random genetic mutation, random traits will develop and some of them won't really affect survival and may propagate.
Yes, traits can propagate even if there is no selective pressure for them. But they won't reach 100% of the species, even less so 100% of several geographically separated species (such as African and European bees) just because they aren't that bad. Could we contrive a story where it could be possible something like this does happen? Sure, but it would be very unlikely (basically, it would require only a small population that happened to have this minor handicap to have randomly survived some mass extinction event that killed off the entirety of the rest of the species).
Well, there's a larger problem in the post. The primary reason that a bee dies when it stings you is that you kill the bee. A bee stinging an inanimate hunk of meat is unlikely to die.
But they can die, and yeah, a big part of the reason why is that dying isn't as large of a cost for bees as you might expect from a human perspective.
And looping back, another part is that given the very high risk of being intentionally killed when stinging an enemy who you want to sting, improving the much smaller rate of accidental death isn't really worth much. But even though it isn't worth much, it's worth something, and work has been done on the project.
Per everything I've ever read on this, a bee that has stung meat is no longer able to survive. It will either try to pull itself out and disembowel itself, or it will remain stack and die of hunger. What makes you think a bee that stings, say, a dog that can't swat it will then go on to survive?
Watching a youtube video by a beekeeper demonstrating that a bee stuck in his arm will gently wiggle itself around until it can pull free and fly away. Between that one guy with his live demonstration and his plentiful experience being stung by bees, and you with everything you've ever read, I'm obviously going to stick with him.
So I've countered your two anecdotes with two anecdotes of my own. Can we go back to looking at what people studying bees have written?
For example, this article interviews two bee scientists that confirm that the majority of honeybees die via self-disembowelment after stinging a human:
However, they mention an interesting other thing, that may actually help explain what happens much better: bees don't die when they sting other insects or spiders, they only die when their needles get stuck in our thick skin. So perhaps the most likely explanation for the evolution and survival of the barbed stinger trait is that it's beneficial when bees fight their common enemies, and that bees simply don't interact that much with mammals and their thick skins.
I'm not sure why this answer is buried down so deep. It should be pretty obvious.
The average bee has no reason to ever fight a mammal. Optimizing for a rare event like that makes no sense. It's only once humans started domesticating honey bees that the interaction between honey bees and mammals has become a frequent occurrence.
Surviving attacks against humans that help you survive is a really strange priority.
To be fair, many forest mammals will try to eat honey (bears and honey badgers being just two well known examples) and those have skins much thicker than even ours, so I suspect that bees have the same issues when stinging them. And those mammals are much more of a threat to a hive than insects and spiders, as they will virtually destroy the entire hive structure if they are not deterred, and likely kill thousands of larvae and bees.
> It's only once humans started domesticating honey bees that the interaction between honey bees and mammals has become a frequent occurrence.
This can't possibly be true; the honeyguides are a family of birds whose evolved behavior is to find humans and lead them to wild beehives so that the humans can forage the honey (and the honeyguide can forage the leftovers).
> So I've countered your two anecdotes with two anecdotes of my own. Can we go back to looking at what people studying bees have written?
No? You claimed that bees stinging meat cannot survive. Your anecdotes do nothing to support that. Decide what you want to say, then look for support. Where do you get the idea that two examples of something happening provide just as much support for the idea that it always happens as four examples of it not happening do for the idea that it doesn't always happen?
But for what it's worth, Aristotle wrote in the 4th century BC that bees stinging humans often recover, but that they will inevitably die if they lose their stinger.
Not at all my experience. My Italian bees are pretty hot though, so that may be why. My Russian bees are much nicer, and I've never been even stung by one of them, so maybe that's it. My hot bees will rip their stinger out within a second, and they emit a very particular frequency that I feel and that lets me know very quickly that I'm in trouble -- to be fair I've only experienced that vibration a handful of times because I've gotten much better at not leaving any exposed skin or any way for them to get in my suit.
All those bee rescue videos you see where the beekeeper doesn't wear a veil are not telling you the whole story. Before they go work on extracting the hive they'll first check that those bees are not hot and angry. If those bees are africanized then they'll use a suit and smoke and they will not bother making or posting a video about it. I.e., those videos are all cherry-picked experiences, all the good ones.
The ones that manage to leave the stinger in never survive in my case. Idk what to tell you. That's just my experience. Can they survive? Yes, they can. Does it happen? Yes. Does it happen often? No, I don't think so.
reply