employer cover photo
employer logo
employer logo

JetHead Development

Is this your company?

JetHead Development Interview Question

One problem we had to solve was modifying some server and client code they provided to us so that the client could send some character and a number, X, to the server who would then return that character X many times. (e.g. C: A 3, S: AAA)

Interview Answer

Anonymous

Dec 15, 2016

It took me until the end of the session to figure out an answer, and even then my code was still buggy. Regardless, I chose to have the server write the output to the buffer within a for loop X many times, but I don't think I read from the buffer at proper intervals, as I often polluted the output with garbage values.