Quote:
Originally Posted by Barrin6
I'm curious to hear what kind of go-to interview questions that you guys ask?
I had a fun codeforces problem I was working on the other day that might have been a good interview question.
A store is selling N items. You know the prices of each item and also what the price will be next week. Some prices will go up and some will go down. Today you need to buy at least K items, and buy the rest of the N items next week.
What is the minimal amount of money you need to buy all N items?
I have 3 questions I've asked many times.
1) merge two sorted double linked lists - Sounds straightforward but most can't code this cleanly and correctly without a bunch of errors and help
2) parse and deserialize a json string to a Java object - Requires good code organization, recursion (or state machine), and string parsing. This one has everything it's great for a 1 hour question. I think 1 person has solved it completely but I evaluate for how they approach the problem and how far they get.
3) design an image sharing site like imgur or instagram. Open ended design. I dig into various parts of the stack to test how deeply they know a topic and how they approach the problem.