Easy Questions

Here is a list of "easy" questions from LeetCode.

Reference: https://leetcode.com/explore/interview/card/top-interview-questions-easy/

Array

  1. Remove Duplicates from Sorted Array
  2. Best Time to Buy and Sell Stock II
  3. Rotate Array
  4. Contains Duplicate
  5. Single Number
  6. Intersection of Two Arrays II
  7. Plus One
  8. Move Zeroes
  9. Two Sum
  10. Valid Sudoku
  11. Rotate Image

Strings

  1. Reverse String
  2. Reverse Integer
  3. First Unique Character in a String
  4. Valid Anagram
  5. Valid Palindrome
  6. String to Integer (atoi)
  7. Implement strStr()
  8. Count and Say
  9. Longest Common Prefix

Linked List

  1. Delete Node in a Linked List
  2. Remove Nth Node From End of List
  3. Reverse Linked List
  4. Merge Two Sorted Lists
  5. Palindrome Linked List
  6. Linked List Cycle

Trees

  1. Maximum Depth of Binary Tree
  2. Validate Binary Search Tree
  3. Symmetric Tree
  4. Binary Tree Level Order Traversal
  5. Convert Sorted Array to Binary Search Tree
  6. Sorting and Searching
  7. Merge Sorted Array
  8. First Bad Version

Dynamic Programming

  1. Climbing Stairs
  2. Best Time to Buy and Sell Stock
  3. Maximum Subarray
  4. House Robber

Design

  1. Shuffle an Array
  2. Min Stack

Math

  1. Fizz Buzz
  2. Count Primes
  3. Power of Three
  4. Roman to Integer

Others

  1. Number of 1 Bits
  2. Hamming Distance
  3. Reverse Bits
  4. Pascal's Triangle
  5. Valid Parentheses
  6. Missing Number

results matching ""

    No results matching ""