The four programming questions from my 1994 Microsoft internship interview (2023)
61–70 of 103 posts
Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#62The 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)
#63Earlier quoted context omitted.
2bpp is indexed obviously, question in 1994 would be is it bitplane or packed
CGA was very limited, and didn't even support full per-color indexing - instead you got to choose one of two palettes (i.e. one of two different sets of 4 predetermined colors). CGA was followed by EGA which supported 16 individually indexed colors (with a palette of 64 colors). With dithering you could display "faded polaroid" quality photos.
Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#64This 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)
#65It wasn't an abstract CS flex on interviewer's part either, because apparently the fib trees were actually used in some part of the FrontPage.
Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#66It's pretty amazing to me that, if your goal is to check that the intern candidate can write plain C, the questions still look pretty reasonable to me even in 2026, maybe except for the question related to colors which will probably confuse the majority of the interns (2 bits per color? how is that possible). For the circle drawing exercise, it just seems that the interviewer did not do a good job hinting the author.…
> (2 bits per color? how is that possible). this is probably a rhetorical question, but lemme answer anyways: By packing the colour channels into a single byte. So, for example, you'd have RRGGBBAA within a single byte, for each pixel. Giving you 64 possible colours, with 4 steps of alpha. Or if you don't need to have alpha, you could pack it even further down to RRGGBB in a byte, which leaves 2 bits left over for th…
Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#67Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#68The circle outlining one seems interesting to me. I definitely didn't read the algorithm ahead of time, and I'm probably not as smart as a revolutionary genius computer scientist, but I thought of 2 basic algorithms in a few minutes. You could iterate over the degrees 0 to 360, use trig functions to figure out where the point at that angle is, and plot the closest point. Might need to be a bit tricky about the step s…
Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#69Re: The four programming questions from my 1994 Microsoft internship interview (2023)
#70Earlier quoted context omitted.
Surely the modern equivalent to that is having public git repositories.
Perhaps, but has "I'm not doing your whiteboard challenge - check out my git repositories instead!" ever worked for you?!