The right way to test your coding interview solutions [VIDEO]

testing coding interview questions

Properly testing solutions in coding interviews is something that I see a lot of people struggle with, but is absolutely critical for getting the job.

Check out this video where I break down why you should test your code and show you exactly how to do it.

Video notes:

  • [0:52] Why test your solution?
    • [0:55] It’s easy to make really stupid mistakes
    • [1:23] Be confident when your interviewer asks if your solution is correct
    • [2:01] Show that you are thorough and will produce high quality code
  • [2:25] How to test your solution
    • [2:36] Talk through the logic
    • [3:10] Go through your code line by line with a good sample input
  • [4:18] Demo

Nail your coding interview and get the job you deserve

Sign up for my weekly emails and I’ll show you how to become an interview rockstar, solve brutal coding problems, and get the dev job you deserve.

We won't send you spam. Unsubscribe at any time. Powered by ConvertKit

Nail your coding interview and get the job you deserve

Sign up for my weekly emails and I’ll show you how to become an interview rockstar, solve brutal coding problems, and get the dev job you deserve.

We won't send you spam. Unsubscribe at any time. Powered by ConvertKit
  • TONY LI

    If the input of n is null, the last line of codes will fail as prev is null.

    • Yep it’s missing from this video, but we are making the assumption that the input is non null

      • TONY LI

        I mean the last line ‘prev.next = null;’ can be removed. Even the prev does not need to be initialized to be null in the third line.

        • I’m pretty sure java is going to require line 3 because otherwise the variable may be uninitalized