Skip to content

Instantly share code, notes, and snippets.

Code Reading Interview Questions

Idea from this blog:

I've experimented with many types of interviews, but one thing I really dig lately is code reading. I print out 10-15 code snippets (not just code, but also UNIX commands, regular expressions, SQL queries and many other things). I then go through and ask: what does this snippet do, how does it work, are there any bugs, etc.? Reading code (as opposed to writing) means I can cover a lot of ground extremely quickly, spending no more than a minute or two on each problem.

Snippets

@nelz9999
nelz9999 / log.json
Created March 19, 2019 13:09
Collection of sub-events
{
"events": [
{
"able": "a",
"athos": 1,
"t": "2019-03-19T06:03:44.324126-07:00"
},
{
"bravo": "b",
"porthos": 2,

Keybase proof

I hereby claim:

  • I am nelz9999 on github.
  • I am nelz (https://keybase.io/nelz) on keybase.
  • I have a public key ASCPSg4DvSgvBycXe6_YkwIo3y7nPD-45Zl1zJLLSdNs9Ao

To claim this, I am signing this object: