Git Product home page Git Product logo

coding-interview-preparation's Introduction

Top Interview Questions

The following list contains the most commonly asked / important questions in coding interviews.

LinkedLists

  1. Add two numbers represented by two Lists (heads are least significant digits)
  2. Remove Nth node from the end of the list
  3. Merge two sorted lists
  4. Reverse linked list
  5. Reverse LinkedList in groups of k

Dynamic Programming

  1. Longest substring without repeating characters
  2. Longest palindromic substring
  3. Maximum sum SubArray
  4. Climbing stairs
  5. Word break
  6. House robber

Math

  1. Reverse an integer
  2. Square root
  3. Implement Pow(x, n)
  4. Excel sheet column number
  5. Count primes
  6. Find median from data stream
  7. Coin change

Two Pointers

  1. Container with most water
  2. Valid palindrome
  3. Pythagorean triplets

Strings

  1. Roman to Integer
  2. Longest common prefix
  3. Letter combinations of a phone number
  4. Valid parenthesis
  5. Implement strStr

Arrays

  1. Remove duplicates from a sorted array
  2. Search in rotated sorted array
  3. Rotate image
  4. Spiral matrix
  5. Merge intervals
  6. Sort colors
  7. Merge sort an array
  8. Merge two sorted arrays
  9. Number of islands
  10. Kth largest element in array

Trees

  1. Binary tree In-order traversal
  2. Binary tree level order / zig-zag level order traversal
  3. Validate BST
  4. Symmetric tree
  5. Maximum depth of binary tree
  6. Balanced binary tree (needs depth function)
  7. Convert sorted array to BST (needs overloading)
  8. Populating next right pointers in each node
  9. Kth smallest in a BST
  10. Binary tree to Doubly LinkedList

Design

  1. LRU Cache
  2. Min Stack

coding-interview-preparation's People

Contributors

piyushagade avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.