News for hackers. Stuff that matters.
Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @09:34AM (#31630848)
On the flip side, we questioned a candidate the usual way with pertinent technical challenges and so on. Then when driving in a van to lunch (our habit was to do a social segment as well as technical) I asked some puzzle questions - add 6 feet to a rope around the world, stretch it out and how far off the ground would it be? and suchlike. He was charmed, we brainstormed some answers and had a fun lunch.

Years later, now a senior Engineer at our place, he admitted he had been going to give us a miss that day, until that conversation in the car.

Re:I cheated on my Microsoft interview (2019) by drewcoo on Sunday June 05, 2022 @12:31PM (#31632446)
The rope question is more of a Fermi question[1]. Not that they aren't commonly called [2] puzzlers, but I think the distinction is useful. Fermis are about estimating, and that's an actual skill - innumeracy[3] is real.

What I would call puzzle problems usually involve some trick to getting the answer. If you can't figure out the trick, you're stumped. If you know the trick, you barely have to think to crank out the answer. Optimally solving the example in the article is one of those.

They weren't widely banned because they were too novel and charming. They were banned because "time to aha!" in any given instance doesn't tell you much about how someone solves problems. Also, because the bulk of the work at most jobs doesn't really resemble seeking "aha moments," these questions tend to select for people who thrive most on doing something other than the job at hand.

[1] https://en.wikipedia.org/wiki/Fermi_problem

[2] https://blog.codinghorror.com/the-hardest-interview-puzzle-q...

[3] https://innumeracy.net/category/estimation/

Re:I cheated on my Microsoft interview (2019) by zamadatix on Sunday June 05, 2022 @08:11PM (#31636061)
To me it definitely seems to be in the puzzler category based on those descriptions. The trick is realizing it's "just" asking you to solve the well known formula for radius to circumference, 2*pi*r=c, for c=6 would give r≈1 while you can ignore the rest of the information worded to trick you into thinking it's a complicated problem which would require a fancy solution. Of course if you're not dealing with geometry every day of your adult life it's more likely it leads to seeing what your general thought process is, such as "I'll fall back to Fermi Estimation to get a ballpark going".
Re:I cheated on my Microsoft interview (2019) by akhmatova on Sunday June 05, 2022 @12:05PM (#31632192)
I asked some puzzle questions - add 6 feet to a rope around the world, stretch it out and how far off the ground would it be?

I can only imagine being "charmed" by a question like if I was much younger in my career, eager to be seen as smart and in the company of like-minded folk.

Nowadays... my focus is on solving problems... as in real problems, not made-up ones. Thankfully I haven't heard questions like this in years. But when I do, I take it as a sign that they probably don't have actual, meaty problems to work on, that is, requiring higher-level cognitive skills (and actual experience). Not to mention that this was supposed to be lunch, and here they are asking filter questions, but pretending it's just "casual conversation" when obviously it isn't.

And so would probably pause for a second, and think of a way to tactfully end the interview, and thank the interviewer for their time.

Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @12:58PM (#31632731)
Yeah it's easy to act all butt-hurt and be too good to even try. But how outrageous is it to imagine that folks who can solve such problems might be able to solve other problems?
Re:I cheated on my Microsoft interview (2019) by anon2020dot00 on Sunday June 05, 2022 @01:28PM (#31633032)
Also, it's not about being too good to even try but about being old enough to no longer put-up with corporate non-sense; too much bullshit in a job to put up with as it is. Once you get to a certain age, you learn to prioritize real stuff rather than appearances.
Re:I cheated on my Microsoft interview (2019) by sys_64738 on Sunday June 05, 2022 @01:20PM (#31632947)
A lot of people will find your questions obnoxious and irrelevant. Ask questions about the candidate's experience in past problems. Asking abstract questions to satisfy your own ego is a narcissistic trait.
Re:I cheated on my Microsoft interview (2019) by anon2020dot00 on Sunday June 05, 2022 @01:24PM (#31632983)
That's not the point or context; No one likes "creative" interview questions is what people are saying like this is just a variation of brain teasers from 1990's Microsoft interviews.
Re:I cheated on my Microsoft interview (2019) by nprateem on Sunday June 05, 2022 @01:40PM (#31633156)
I think you've got it backwards. Lots of people who could solve your real world problems with a computer might not have a background in maths or physics and so may not be able to solve your puzzles. They may just feel anxious about appearing stupid in front an interviewer, and annoyed they weren't allowed any downtime in the day.

This is about empathetically understanding the stress levels between both of you would have been miles apart. Unless the candidate had brought up the subject somehow it'd have been nicer to just try to relax them and get to know them informally by asking about them - or better yet letting them do their own thing for lunch if they wanted.

Re:I cheated on my Microsoft interview (2019) by spoils19 on Monday June 06, 2022 @01:29AM (#31637469)
This shows an alarming level of narcissism. I (principal engineer) would definitely not want to work with you.
Re:I cheated on my Microsoft interview (2019) by cntainer on Sunday June 05, 2022 @11:10AM (#31631666)
add 6 feet to a rope around the world, stretch it out and how far off the ground would it be

is this a technical puzzle/question? to me it reads like a middle school geometry question. it would be fun to discuss it with friends/colleagues but I wouldn't expect it during a software engineering interview

Re:I cheated on my Microsoft interview (2019) by ralfd on Sunday June 05, 2022 @11:21AM (#31631775)
https://mathimages.swarthmore.edu/index.php/Rope_around_the_...

> Although finding the answer requires only basic geometry, even professional mathematicians find the answer strangely counter-intuitive.

I guess the more a visual person you are the more counter-intuitive it is. That only 6 feet of rope is needed to widen the radius of Earth at every place at continents and oceans ect at a whole 1 feet seems crazy to me.

Re:I cheated on my Microsoft interview (2019) by cntainer on Sunday June 05, 2022 @11:44AM (#31631998)
sure, the answer might seem counter-intuitive but the method to find the answer is not, as long as you know the connection between a circle's circumference and its diameter

I still fail to see how this is relevant for a technical interview, assuming that we're trying to hire a software engineer. Fun, but not relevant.

Re:I cheated on my Microsoft interview (2019) by kelnos on Sunday June 05, 2022 @02:29PM (#31633591)
Hah, I just did the math on this myself, found the answer to be 0.955 feet, and assumed I had done something wrong, or was off by a factor (or two or three) of ten.

That is unexpected!

Re:I cheated on my Microsoft interview (2019) by mlazos on Monday June 06, 2022 @05:30AM (#31638569)
It helps me to think about it in opposite terms. You're increasing the radius by ~1ft (radius around the whole earth), and 2pi is the linear relationship with circumference, so you'll get six ft. Thinking about it this way kind of ignores the fact the circle is huge. I'm not too visual of a person though.
Re:I cheated on my Microsoft interview (2019) by the__alchemist on Sunday June 05, 2022 @02:18PM (#31633502)
I think that's perhaps a naive interpretation. At the core of this question are a number of assumptions, and concepts to think about:

  - What is the rope made of? How stretchy is it? How strong is it to tensile stresses?

  - What model of the earth are we using? A sphere (circular cross-section?) ellipsoid? Which axis of the ellipsoid? Does it take terrain into effect, or just gravitation? How does the rope avoid hitting terrain?

  - How does the rope stay suspended? how does it resist gravity? are there uniform thrusters on it? How are they fueled?

  - How is length added to the rope? Is it stretched somehow? Material added? How is the added material, if applicable, inserted?
Ultimately, I think we need to know what project requirement is driving the question to be able to answer this. It would shed light on most of these assumptions. If it sounds like I'm being pedantic or overthinking the question, I'd disagree: These considerations are critical to giving a meaningful answer; otherwise the question doesn't make sense. Unless we're talking platonic forms or w/e.
Re:I cheated on my Microsoft interview (2019) by cntainer on Sunday June 05, 2022 @04:05PM (#31634373)
It does sound like overthinking to me, but context is king. Without context/requirements we're just guessing.

Maybe the job interview is for Space X and they're working on some new system of mini-satellites-on-a-rope called Hyper-rope, or maybe google is trying to pivot their failed Loon project into some kind of air-born connectivity solution, and the rope is actually a very long fiber-optic cable.

Or the interview could be for an online eCommerce platform and the person being interviewed will most likely have to work in a huge heterogeneous codebase with all the important technical decisions already made.

otherwise the question doesn't make sense Well that is my point. I love these types of subjects, but when I'm having a beer with friends and we find a puzzle like this one and we try to take it as far as possible without going into fiction/bullshit territory.

So it could be useful to check/signal for culture fit, and in OP's case it actually worked like that OP: "We value people that love to get into this type of discussions/arguments" Interviewee: "Gosh, you guys bored me to death during the technical interview but it seems like we have similar tastes when it comes to theoretical puzzles so I'll give you another chance"

Nothing wrong with this though. It just proves that interviewing is a complex process and actual merit and success are highly subjective.

Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @12:56PM (#31632717)
That's just the first question.

The follow-on is, if you add 6 feet and put your finger under the rope and pull up until it's tight again, how far have you raised your finger? 1ft? 10ft? 100ft? 1000 miles?

The answer to that is very difficult. There are several approaches.

Re:I cheated on my Microsoft interview (2019) by cntainer on Sunday June 05, 2022 @01:25PM (#31633004)
Yes, but that's still a geometry problem. Don't get me wrong, geometry was my favorite branch of mathematics in school, but I don't see how this is relevant for most software engineering jobs.

I guess this type of question might serve the purpose of finding like-minded people with similar interests (in your case geometry or puzzles) but it might alienate others.

Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @04:51PM (#31634722)
Most folks require calculus to solve it. Give it a try!
Re:I cheated on my Microsoft interview (2019) by cntainer on Monday June 06, 2022 @04:59AM (#31638455)
great, now I need a new branch of math to be able to continue, lol!
Re:I cheated on my Microsoft interview (2019) by Jare on Sunday June 05, 2022 @01:11PM (#31632849)
I solved a very similar problem (in the context of a pathfinding and obstacle avoidance sim) 25 years ago, and I can probably describe the thought process and geometry in very digestible terms, but if I had to code it in a whiteboard I'd likely fail.
Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Friday June 10, 2022 @02:24PM (#31697658)
Same here. I don't code with somebody looking over my shoulder. Can't perform that way. :)
Re:I cheated on my Microsoft interview (2019) by analog31 on Sunday June 05, 2022 @06:46PM (#31635546)
An issue is that one person's trick question is another's straightforward problem. My college algebra students thought that every problem was a trick question, and that the only strategy for passing exams was memorization.
Re:I cheated on my Microsoft interview (2019) by freedomben on Sunday June 05, 2022 @01:32PM (#31633073)
Was this a situation in which you were asking the candidate while everybody else either already knew the answer and was listening to the candidate think?

Or was it more like everybody was discussing (and explicitly or implicitly through discussion) admitting that they don't necessarily know the answer (while assumedly is an engineer in good standing on the team), and the group is working together to solve it?

Because both situations seem equally plausible based on what you wrote, and if it's the first one then I agree with your detractors below that it's messed up. If it's the second situation then I would have loved it and been excited to join your team.

It's very possible that the ambiguity of the situation is why there's such variance in reactions.

Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @04:53PM (#31634736)
It was new to the group, if I recall.
Re:I cheated on my Microsoft interview (2019) by dekhn on Sunday June 05, 2022 @10:02AM (#31631085)
you would have lost me (principal engineer) with those questions.
Re:I cheated on my Microsoft interview (2019) by JoeAltmaier on Sunday June 05, 2022 @10:16AM (#31631178)
Really? You don't like to socialize with peers, with puzzles or tricky problems? Enough to make you refuse to join a company?

Discussion has gone off the rails here. Maybe I didn't make it clear - the puzzles were during casual conversation at lunch. Rebutting something I didn't say, is not fair.

Re:I cheated on my Microsoft interview (2019) by spywaregorilla on Sunday June 05, 2022 @10:39AM (#31631383)
Would have been a huge negative to me. I'm fine to chat with peers and discuss little riddles.

That is not what's happening when you're interviewing me for a job position. You're not my peer. We're not having fun. There's a non-subtle implication that my ability to answer the riddle will impact whether or not I get the job. I would be very annoyed if someone asked a puzzle like this too. It's not a novel puzzle. It's mostly a gotcha where intuition meets math. I could blurt out the answer. But I would instead feel it more important to slowly reason out the answer and appear to discover it on the fly. Which is pretty bullshit. And I would think you're not very smart for thinking this is worth anyone's time.

If I didn't know the puzzle and I failed to get the job I would be mad and it would stick out as something that penalized me unfairly.

Re:I cheated on my Microsoft interview (2019) by gcommer on Sunday June 05, 2022 @11:50AM (#31632050)
In every interview I've done, lunch was explicitly bracketed by "this is a free, casual lunch that won't affect your interview at all".

And as an interviewer, I've never been asked to report on lunch chats.

> You're not my peer. We're not having fun.

Actually, most interviewers are your peers, and they typically know that you're under interview stress and are trying to help. If you can't take a break and de-stress during lunch, you're just hurting yourself.

Re:I cheated on my Microsoft interview (2019) by site-packages1 on Sunday June 05, 2022 @12:07PM (#31632214)
The power dynamics at play makes someone spending time with me during an interview process where they have nothing to lose and can exert influence in the selection of me for a full time job offer decidedly _not_ my peer in that situation.
Re:I cheated on my Microsoft interview (2019) by mynameisash on Sunday June 05, 2022 @01:57PM (#31633315)
> Actually, most interviewers are your peers

Every time I interviewed someone, I ALWAYS asked myself if I would want to work with this person.

Not just, can they do the job? Not just, are they technically competent? But, is this someone I would be comfortable going to, asking for help? Are they someone I can build rapport with, brainstorm new approaches and products with? Do they pass the "have a beer together" test?

Someone who explicitly has an attitude of, "You're not my peer, we're not having fun" doesn't sound like a good collaborator. Doesn't sound like someone who can be an approachable. Doesn't seem like a good mentor to newer members of the team.

Re:I cheated on my Microsoft interview (2019) by folkhack on Sunday June 05, 2022 @03:23PM (#31634035)
> Someone who explicitly has an attitude of, "You're not my peer, we're not having fun" doesn't sound like a good collaborator. Doesn't sound like someone who can be an approachable. Doesn't seem like a good mentor to newer members of the team.

Interviewing is a high stress situation where the person performing the interview ultimately has power. What you're discussing here is how well I can socially fit in - regardless of pressures/stress on my side of the table etc.

It's 100% performative - if I am an interviewee I'm showing you the professional version of myself which is positive attitude and politeness. I'm upholding a social contract.

---

> Do they pass the "have a beer together" test?

I'm not here to have beers with you - I'm here to work. And, I think this is pervasive in regards to hiring. This can be incredibly discriminatory and I would appreciate you interview me on the value I can add with my labor vs. "can I have a beer with this guy?" That's weird to me, and as someone who interviews I work hard to not think this way... "Who I like" isn't necessarily who is going to perform in the role - I have to keep my personal preferences out of my professional decisions in my world... and I think that's fair.

---

Idk - interviewing is not fun for most people. I defend op's "we're not peers, we're not having fun" perspective both as an interviewer, and interviewee. I think it's a reasonable stance to take as long as they're outwardly presenting as professional and polite as that's what actually matters... not "beers"

Re:I cheated on my Microsoft interview (2019) by Jare on Sunday June 05, 2022 @01:16PM (#31632906)
Neither have I, but unless I was asked to deliver my interview evaluation before the lunch, you can bet any particularly good or noticeably bad flags during lunch would go into it.

Conversely, the couple times I had those "casual" lunches as a candidate, "I'm jetlagged" was a graceful way to lie out of the question why I wasn't eating much.

Re:I cheated on my Microsoft interview (2019) by spywaregorilla on Sunday June 05, 2022 @03:21PM (#31634027)
If you want to destress me during lunch, don't ask me riddles which are strongly associated with interview questions
Re:I cheated on my Microsoft interview (2019) by ClumsyPilot on Sunday June 05, 2022 @03:17PM (#31633979)
> Actually, most interviewers are your peers

Sexual innuendos from peers at the bar are one thing, sexual innuendos from interviewer are another

Re:I cheated on my Microsoft interview (2019) by hunter-gatherer on Sunday June 05, 2022 @12:55PM (#31632705)
I feel like everyone here is missing OPs point. It seems like they had a mostly typical interview, which the candidate had probably been through a bunch of but for whatever reason wasn't to intrigued by the company. Maybe the candidate thought it was too boilerplate... I don't know. But then during lunch, when a handful of collegues are casually throwing around brain teasers, the candidate realized he would like the atmosphere. This doesn't seem too wild to me. But then again, software engineers are some of the most sensitive people I've ever worked with.
Re:I cheated on my Microsoft interview (2019) by dekhn on Sunday June 05, 2022 @01:19PM (#31632941)
I got the point. I'm not like that person. Most aren't.
Re:I cheated on my Microsoft interview (2019) by nprateem on Sunday June 05, 2022 @01:21PM (#31632961)
Ah I see I'm a snowflake for not liking the power imbalance and irrelevance of this sort of thing.

TBH I'd just have found it contrived and boring. I wouldn't be excited to have colleagues who couldn't just talk about normal stuff at lunch.

Re:I cheated on my Microsoft interview (2019) by robocat on Sunday June 05, 2022 @03:32PM (#31634117)
I think you are reading too much into the story.

One reason for the lunch is to try and relax a bit and test “cultural fit”, which is more like a blind date between two people to see if there is any spark. Ideally it is a two way conversation, where the candidate and the interviewers get to judge each other.

There is a problem where cultural fit “tests” are heavily biased against minorities - for example most any sports discussion is dominated by your social class.

Enjoying brain teasers matches a particular type of geek, and the discussion likely veered or was encouraged in that direction by the candidate. It wasn’t Machiavellian, which perhaps you are more responsive to?

Re:I cheated on my Microsoft interview (2019) by nprateem on Monday June 06, 2022 @03:50AM (#31638151)
If that's how you've learnt to understand empathy, then sure, I guess I must be
Re:I cheated on my Microsoft interview (2019) by rileyphone on Sunday June 05, 2022 @12:36PM (#31632507)
Maybe its role is to filter for the right mindset.
Re:I cheated on my Microsoft interview (2019) by dekhn on Sunday June 05, 2022 @10:45AM (#31631436)
Asking puzzle questions during lunch interview is absolutely not just socialization. In fact I remember as a kid my dad explaining how lunch interviews are culture tests and how to succeed them- but it's very unpleasant for me. Best lunch "interview" I ever had was at Noname at Google some 15 years ago, it was just a relaxed conversation where we discussed the fact that Google's chefs made and served consomme.

I absolutely don't like solving puzzles with other people. On the other hand, I do enjoy writing code on my own, solving problems (not puzzles) and then sharing the results in a readable way with others.

I do like to socialize with peers, but never playing games (I prefer to play games on the computer against NPCs).

THe reason I don't like this is there are people who've asked me ludicrous puzzle questions before and they are proxies for 'people I wouldn't want to work with'.

Re:I cheated on my Microsoft interview (2019) by pfooti on Sunday June 05, 2022 @10:23AM (#31631239)
I think there's a pretty clear difference between chatting about interesting puzzles between friends and asking annoying puzzle questions in a job interview. The power dynamic is very different, although honestly I don't often like those socially either. They can be deployed to trip other people up, make them feel small, etc. Can cause social anxiety.

As with most things, it depends a lot on the history you have with those people and the psychological safety you feel, so it depends? Definitely not with someone I just met and is interviewing me for a job.

And FWIW I also don't interview anywhere there are questions like this.

Re:I cheated on my Microsoft interview (2019) by enumjorge on Sunday June 05, 2022 @10:24AM (#31631257)
Happy to chat about puzzles when we really are peers. In an interview setting that’s not the case. For some candidates there could be a lot riding on the outcome of that interview and grading them based on puzzles that don’t really reflect day-to-day work is IMO kind of rude.
Re:I cheated on my Microsoft interview (2019) by elbigbad on Sunday June 05, 2022 @11:06AM (#31631623)
imho this is really negative. Early in my career I would have been self-browbeaten into answering such an interview question disguised as “fun” lunch conversation, but I would have hated it and thought badly of your company. Power dynamic, not subtle implications about getting the job, gaslighting, etc. all lead to a bad look.

At least normally when someone takes you out to the XYZ company “not part of the interview” lunch halfway through your eight hour interview loop and you chat small talk and background, there aren’t actual interview questions being thrown your way.

Imagine going to lunch and the interviewer striking up a conversation with “how many manholes do you suspect there are in New York.”

Re:I cheated on my Microsoft interview (2019) by msrenee on Sunday June 05, 2022 @11:22AM (#31631781)
Well, I would have enjoyed that discussion. If the interviewer is capable of taking a break and having an engaging conversation about literally anything during an interview, that's a massive bonus in my mind. I don't need to hear about your plan to shake things up for the 10th time. If you can't see me as a person and not just a potential cog to make your department look better so that you get your bonuses, I don't want to work for you.
Re:I cheated on my Microsoft interview (2019) by nprateem on Sunday June 05, 2022 @10:26AM (#31631269)
There's nothing clever in Googling some obscure fact just to feel intellectually superior in an interview. Red flag here too.

Didn't you have anything more interesting/relevant to talk about?

Re:I cheated on my Microsoft interview (2019) by sys_64738 on Sunday June 05, 2022 @01:16PM (#31632905)
> You don't like to socialize with peers

No, I go to work for an employer and work with my peers. My peers are not my friends in most situations. Maybe for you that is the extent of your social life so you think peers have to be friends, but you mixing the two together is your work/life balance limitation being applied to those you want to hire.

Re:I cheated on my Microsoft interview (2019) by xtracto on Sunday June 05, 2022 @11:36AM (#31631938)
Are managers that naive with regards to power imbalances with their peers/colleagues?

I have seen people with similar insensitivity fail to understand why people in their teams dont like them: "but I treat them as if we are peers!! I like playing on the 'you are doing it wrong'games"!!

Re:I cheated on my Microsoft interview (2019) by relaxing on Sunday June 05, 2022 @11:33AM (#31631903)
> Really? You don't like to socialize with peers, with puzzles or tricky problems?

No, we like to talk about normal stuff.

Re:I cheated on my Microsoft interview (2019) by CTmystery on Sunday June 05, 2022 @12:36PM (#31632502)
Agree that the amount of entitlement in this thread is wild. People, ostensibly respected principal engineers, will turn down jobs because they are asked a puzzle question during lunch. I _hope_ we are fortunate enough for this attitude to be a possibility in the next decade.
Re:I cheated on my Microsoft interview (2019) by goodpoint on Sunday June 05, 2022 @12:40PM (#31632556)
> You don't like to socialize with peers

An interviewer is most certainly not a peer.

> with puzzles or tricky problems

Seeing a a middle school question as "tricky" it's a bit worrying.

Re:I cheated on my Microsoft interview (2019) by ThrowawayR2 on Sunday June 05, 2022 @12:07PM (#31632205)
> "You don't like to socialize with peers, with puzzles or tricky problems?"

You have to remember that, after about 2010, the software industry is mostly comprised of people who are after a paycheck and their actual interest in computers, STEM, and other nerd activates is kind of minimal. It came as a shock to me too when I realized that the old shibboleths of being a hacker had become largely absent in the software industry.

Re:I cheated on my Microsoft interview (2019) by dekhn on Sunday June 05, 2022 @12:36PM (#31632509)
Well, if you're thinking I said what I said because I'm not a pre-2010 hacker with an interest in STEM or other nerd activities, you'd be completely wrong. I started hacking on UNIX systems in the late 1980s, got a PhD because I wanted to be a scientist, and only went to work at Google to get access to their computer farm (where I built what was the world's largest idle cycle harvesting system, for science, at the time) although the pay was quite nice!

No, I said what I said because it's hard enough to be "on" during the coding interviews and also "on" during the culture tests, to also be "interested" in your puzzle. Wrong time, wrong place, wrong signal to send. Lunch interview (and the transport to it) is about learning about other people in a fairly non-competitive way.

Re:I cheated on my Microsoft interview (2019) by edflsafoiewq on Sunday June 05, 2022 @11:14AM (#31631709)
Is that a puzzle? Isn't it just 2πr + d = 2π(r + d/2π)?
Re:I cheated on my Microsoft interview (2019) by drran on Sunday June 05, 2022 @03:43PM (#31634202)
When stretched, the length of the rope will be two straight lines plus part of the circle. The length of the segment can be calculated using a formula for horizon. Then we can create an equation: (s arc distance to horizon for h)*2 + delta = (d straight Distance to horizon for h)*2, or d-s-delta/2=0.

d=sqrt(h(2R+h)) km/m (see https://en.wikipedia.org/wiki/Horizon#Approximation )

s=R*arccos(R/(R+h)) (see https://en.wikipedia.org/wiki/Horizon#Arc_distance )

sqrt(h(2R+h))-R*arccos(R/(R+h))-delta = 0

6 foots is about 2 meters.

sqrt(h(2*6371000+h))-6371000*arccos(6371000/(6371000+h))-2 = 0

h=306m

Re:I cheated on my Microsoft interview (2019) by gshubert17 on Wednesday June 15, 2022 @03:21PM (#31758033)
I think I found a small typo, where you have delta (instead of delta/2) in the third line. I believe it should be

sqrt(h(2R+h))-R * arccos(R/(R+h))-delta/2 = 0

This can be solved for h given delta numerically, such as with a spreadsheet. Use caution here because this formula leads to a loss of significant digits from cancellation of nearly identical terms.

For example, given R = 6378000 meters and trying h = 193 meters: the first (d) term is 49618.0 meters and the second (s) term is 49617.0 meters. The difference is 1.0 meter, which is the half delta we wanted. But there's been a loss of 4 significant digits (because the first 4 digits in each value are the same: 4961). The smaller the arc distance, the smaller the angle, the worse the relative error becomes.

It's possible to analytically factor out sqrt(2hR) from both the d and s terms. In the first case,

d = sqrt(2Rh+h^2) = sqrt(2Rh) * (1+h/4R) using Taylor series for (1+h^2/2Rh)^0.5

In the second case, I can derive one formula, but the coefficients aren't the same as my numerical best fit, which is

s = sqrt(2Rh) * (1-5h/12R)

Combining the two series versions for d and s, gives us this for delta,

delta = 4h/3 * sqrt(2h/R)

Finally, solving for h given delta, take the cube root of h^3:

h^3 = (9R/32) * delta^2

Thus for a delta of 2 meters, I get height h = 192.88 meters.

Re:I cheated on my Microsoft interview (2019) by texaslonghorn5 on Sunday June 05, 2022 @03:59PM (#31634319)
I believe this is overcomplicating the problem, the answer is just r' = (2pi*r + 6ft)/2pi - r = 6ft/2pi ≈ just under 1ft
Re:I cheated on my Microsoft interview (2019) by drran on Monday June 06, 2022 @11:16AM (#31641576)
Just by folding the rope you will be able to reach 6ft/2 = 3ft. Check your formula, please.
Re:I cheated on my Microsoft interview (2019) by marcosdumay on Sunday June 05, 2022 @12:20PM (#31632330)
Yes, to both.

It's very counter intuitive, and very easy to solve.

Re:I cheated on my Microsoft interview (2019) by quantum_magpie on Monday June 06, 2022 @03:12AM (#31637965)
That is for a smooth sphere, which the world is neither.