3 ms·
Government department in the UK: This was for a Django developer contract. One question was around how to let people experiment with large amounts of data easi
by Nextgrid 5y ago
Government department in the UK:
This was for a Django developer contract. One question was around how to let people experiment with large amounts of data easily through a browser - my answer of provisioning & giving each (authenticated) user a powerful machine with a copy of the data that would give them the ability to run queries on it (through the browser) was spot-on. I also had questions around serving multi-gigabyte files where me answer of using Nginx to stream the file (behind custom auth - essentially your backend receives the request and authenticates it, but responds with a specific header instructing Nginx to serve the file - at which point the backend is no longer involved) was good.
They gave me a sequence of numbers and asked what it was (It was the Fibonacci sequence) - I couldn’t answer.
They explained me a little bit (but I guess not enough) about the relationship behind the numbers and asked me to write a function to generate them. I couldn’t. I had access to Google but I honestly told them that clearly the point of the exercise is that I wouldn’t search this particular thing (which they agreed) so I didn’t.
I couldn’t figure it out; in the end they showed me the solution and while it was easy in retrospect (a one-line recursive function) I wouldn’t have been able to figure it out.
That tanked the interview. Overall no hard feelings from either side and since then I’ve consulted for multiple clients and delivered successful solutions. I still wouldn’t be able to figure this out if this question came up again - realistically speaking this would never actually come up in my field of work (and when it does, I can Google it) so no big deal, but I guess they didn’t see it that way.