Skip to content

Instantly share code, notes, and snippets.

@robconery
Created September 27, 2023 19:18
Show Gist options
  • Save robconery/9479f30f2010bbf7225cb3bfd1cb78a1 to your computer and use it in GitHub Desktop.
Save robconery/9479f30f2010bbf7225cb3bfd1cb78a1 to your computer and use it in GitHub Desktop.
Mission Skeet Linter

We're going to start Jon off with a bit of a softball, asking him to create a linter for C#. Here’s the question:

Create a linter for C# which ensures that code structures are balanced. Specifically, code blocks starting with (, { and [.

Normally this question would take a candidate about 30 minutes, even if they haven't studied their interview questions.

Code is just a string and we're checking to make sure that certain characters have their counterparts. How would you solve this? Think about it for a minute and see if your ideas match Jon's.

We'll be using C# for this and the rest of the questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment