Skip to content

Comment on Ask HN: Anyone just say "no" to leetcode interviews at this point?parent

Comments

Can you give one sample of your questions? (Go ahead and change it up a bit first, of course.)

I have several questions that I ask. Each one is structured as python class, with unit tests that are failing. Your job is to make the unit tests pass by fixing the missing implementation/bug. You can add any debugging code, and run the interpreter as many times as you like (I use coderbyte, which isn't great, but it has an editor and an interpreter).

but typically it starts with: you have a list of 10K strings, containing duplicates. produce a counts table (IE, string -> number of times that string occurred). What python data type or class does this efficiently? What is the underlying data structure? What is the time complexity of that data structure?

Next are a few questions about a python Node class used to build a tree, where I have either a bug that breaks a recursive indented print routine, or you need to detect a cycle (IE, is the tree you handed me really a graph?)

Finally, for senior engineers or people who are going to be working with low-level code, I have a bit-packing question using DNA sequences (A, T, G, C). I work for a biotech so it makes sense to have at least one question about DNA.

I've had to refine the questions over time based on what I've seen so that nothing is rushed, the important parts are obvious, and the interviewee doesn't feel like I'm asking them to find an approximate solution to an NP-hard problem in 30 minutes.

I usually ask for some basic knowledge and some more sophisticated stuff. The questions are open instead of yes/no. The answers tell me a lot about the level of skill of someone.

Basics:

What is https and how does it work?

What is a charset?

How would you describe SQL?

Advanced:

Parse the following file... (CSV or a made up txt Format)

Show the results in a table like view.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.