Microsoft

Leetcode Top Questions:

Arrays & Strings:

  1. Two Sum
  2. Valid Palindrome
  3. String to Integer (atoi)
  4. Reverse String
  5. Reverse Words in a String

Sorting & Searching:

  1. Remove Duplicates from Sorted Array
  2. Merge Sorted Array
  3. Sort Colors
  4. Search in Rotated Sorted Array

Linked List:

  1. Reverse Linked List
  2. Linked List Cycle
  3. Add Two Numbers
  4. Merge Two Sorted Lists
  5. Intersection of Two Linked Lists
  6. Copy List with Random Pointer

Trees & Graphs:

  1. Validate Binary Search Tree
  2. Binary Tree Inorder Traversal
  3. Binary Tree Level Order Traversal
  4. Populating Next Right Pointers in Each Node
  5. Populating Next Right Pointers in Each Node II
  6. Construct Binary Tree from Preorder and Inorder Traversal

Backtracking:

Dynamic Programming:

  1. Maximum Subarray Sum
  2. Longest Increasing Subsequence

Design:

  1. Serialize and Deserialize Binary Tree

Others:

Design a site like this with WordPress.com
Get started