Interview preparation course

Arrays

Almost all the problems in the interview either one way or another involve arrays. The array as a data structure is one of the most important data structures, not because of problems based on it, but also because of problems that are actually DP or greedy or backtracking use arrays as internal storage. 

There are certain patterns like reader/writer pattern, two-pointer pattern, sort pattern, which is very useful in a technical interview.

Following problems will be covered in class

  1. Two Sum, Three Sum Problem
  2. Segregate 0s and 1s in an array.
  3. Dutch National Flag algorithm
  4. Remove Duplicates from Sorted Array.
  5. Majority Element
  6. Degree of an Array
  7. Valid Triangle Number

Leave a Reply

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