You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do? Every man in a village of 100 married couples has cheated on his wife. Every wife in the village instantly knows when a man other than her husband has cheated, but does not know when her own husband has. The village has a law that does not allow for adultery. Any wife who can prove that her husband is unfaithful must kill him that very day. The women of the village would never disobey this law. One day, the queen of the village visits and announces that at least one husband has been unfaithful. What happens? You have five pirates, ranked from 5 to 1 in descending order. The top pirate has the right to propose how 100 gold coins should be divided among them. But the others get to vote on his plan, and if fewer than half agree with him, he gets killed. How should he allocate the gold in order to maximize his share but live to enjoy it? Distance is defined like this : If a, b[j] and c[k] are three elements then distance=max(abs(a-b[j]),abs(a-c[k]),abs(b[j]-c[k]))” Please give a solution in O(n) time complexity I applied with Google several years ago. When we got to the compensation negotiation the whole process took a major swing in the wrong direction. They basically offered me 65% of my current salary at the time and offered no bonus. I ask them how they could hire people at such a cut in salary. He told me that the rest of the salary comes in perks like open kitchens and other perks they offered around the office. None being financially viably to pay a mortgage of course. While I was trying to wrap my head around what he was saying, he said one more thing that made me let him know right then that this employment opportunity just wasn't going to work out. He said and I quote: :laugh2: I wanted to drop an "F-Bomb You" right then. I just composed myself and said that I didn't think it was the right opportunity for me right now.