Tips to solve coding interview questions

In this chapter I shall give you some tips on how to solve coding interview questions.

  1. Always first try to come up with brute force approach.

  1. Always think out loud so that interviewer will know your thought process.

  1. Ask doubts/ questions related to the problem that they have given to you.

  1. After you come up with brute force solutions, calculate and write down the complexity of the solution.

  1. Then try to optimize the solution.

  1. While solving the problem, it is always rood to solve with simple and short input and try noticing a pattern.

  1. This will help to know if the question can be solved in DP or backtracking.

 

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *