Live data from Hacker News

The four programming questions from my 1994 Microsoft internship interview (2023)

computerenhance.com

51–60 of 103 posts

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#51
post #46

What is pitch in regard to a rectangle in question two?

Pitch is the offset between the start of consecutive rows of pixels in the image, used to convert y coordinates into the start of any given row, so you access a pixel as buffer[y*pitch+x]. Often this is the image width, but can be greater depending on required alignment.

So at the end of each run increment the relevant pointer by (pitch - w) not pitch which I'm sure it's one of the bugs they saw all the time in this interview :)

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#52

This is a fun article. As a current Principal at MSFT I've never seen these type of questions being asked in interviews. I don't think it's fair or accurate to say "If you’re an experienced programmer, you already know how to do all of them". So many of the SWEs and candidates at Microsoft are just studying leetcode using python, joining the company and writing managed C# code.

I would far prefer getting managed C# over the Electron garbage that constitutes much of Windows nowadays.

Where in MS Windows is Electron used?

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#53
The "Borland flood fill" routine that Microsoft was trying to beat was in the very popular (at the time) "Turbo Graphics for Borland" package which had an immensely useful stack of graphics primitives, some a little more advanced than what was available in Windows at the time, for pure DOS mode.

It was an awesome package - I shipped many products which used it in that era - and it was always a bit amusing to me that it seemed like Borland had almost everything they needed to write an operating system. But, they didn't.

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#54

This brings back memories! I could easily pass this interview today, because I used to write code like this all the time 25 years ago doing gamedev (and so did everyone else to some extent). But the really interesting thing is that I just realized I haven't written code like this in a long, long time. Programming has changed over time, but the change has been so gradual I hadn't even realized this until this article.…

The circle one would have gotten me. "There's a neat algo for this. The name starts with B, and you just get an oracle that tells you if next y ==current y or y-1. And then you loop x, and you have to mirror that to do all octants of the circle with mirroring and flipping by -1 for some octants"

Writing that oracle after 20+ years would have been left as an exercise to the reader.

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#56

I interviewed at Microsoft in Redmond in 1997 and got zero programming questions. They were all knowledge-based or brain-teaser questions so I don't know if I believe that they gave 4 programming questions in 1994.

Mid 1990s were still dog-years for computing, everything moved fast. It's like 2013 to 2026

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#58

The author’s memory is remarkable. I hardly remember my own name that far back, LOL. Back then, I knew I would always struggle with those types of interviews, so I always carried a floppy disk with me to them. The disk contained a few programs I had written, and I would simply tell the interviewers, “Don’t give me a quiz. I’m terrible at it, so if you do, I’m out.” However, if they were willing to look at my capabili…

Why did that approach change?

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#59
post #58

The author’s memory is remarkable. I hardly remember my own name that far back, LOL. Back then, I knew I would always struggle with those types of interviews, so I always carried a floppy disk with me to them. The disk contained a few programs I had written, and I would simply tell the interviewers, “Don’t give me a quiz. I’m terrible at it, so if you do, I’m out.” However, if they were willing to look at my capabili…

Why did that approach change?

I’m not sure if that strategy still works in today’s job market. It might still be, but I’m not the one to answer since I haven’t been on a job interview in quite some time.

Re: The four programming questions from my 1994 Microsoft internship interview (2023)

#60

How does the video whiteboard work? I presume he isn't really writing backwards or is this some sort of software that handles the video and writing surface?

https://www.lightboard.info/ I think he wears a shirt with mirrored writing so it looks correct to the viewers.

What impressed me most is when he pushes a button and the board physically moves up to make space
Post reply on HN