fbpx
Byte by Byte
Skip to content
  • Home
  • Blog
  • Interview Questions
    • All
    • Easy
    • Medium
    • Hard
  • Coaching
    • Mock Interviews
    • Coaching
    • Roadmapping
  • Resources
    • DP Ebook
    • DP Video Course
    • 50 Questions
  • About
    • FAQ
  • Student Login

Medium Coding Interview Questions

Median of Arrays: Coding Interview Question

Coding Interview Question: Median of Arrays

Posted by Sam Gavis-Hughson

Coding Interview Question: Find the median of two sorted arrays. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Medium, Searching 1 Comment
Priority Queue: Coding Interview Question

Coding Interview Question: Priority Queue

Posted by Sam Gavis-Hughson

Coding Interview Question: Implement a priority queue. Click for the solution.

Posted in Coding Interview Questions Tagged Heap, Medium, Queue Leave a comment
Inorder Traversal: Coding Interview Question

Coding Interview Question: Inorder Traversal

Posted by Sam Gavis-Hughson

Coding Interview Question: Given a binary search tree, print out the elements of the tree in order without using recursion. Click for the solution.

Posted in Coding Interview Questions Tagged Medium, Stack, Tree Leave a comment
0-1 Knapsack: Coding Interview Question

Coding Interview Question: 0-1 Knapsack

Posted by Sam Gavis-Hughson

Coding Interview Question: Given a list of items, find the maximum value you can generate from the items. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Dynamic Programming, Medium Leave a comment
Matrix Product: Coding Interview Question

Coding Interview Question: Matrix Product

Posted by Sam Gavis-Hughson

Coding Interview Question: Given a matrix, find the path from top left to bottom right with the greatest product. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Dynamic Programming, Medium 4 Comments
Find Duplicates: Coding Interview Question

Coding Interview Question: Find Duplicates

Posted by Sam Gavis-Hughson

Coding Interview Question: Given an array of integers where each value 1 <= x <= len(array), write a function that finds all the duplicates in the array. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Medium 2 Comments
Autocomplete: Coding Interview Question

Coding Interview Question: Autocomplete

Posted by Sam Gavis-Hughson

Coding Interview Question: Write an autocomplete class that returns all dictionary words with a given prefix. Click for the solution.

Posted in Coding Interview Questions Tagged Medium, String, Tree, Trie Leave a comment
Build Order: Coding Interview Question

Coding Interview Question: Build Order

Posted by Sam Gavis-Hughson

Coding Interview Question: Given a list of packages to build, determine a valid order in which to build the packages. Click for the solution.

Posted in Coding Interview Questions Tagged Graph, Medium, Sorting Leave a comment
Consecutive Array: Coding Interview Question

Coding Interview Question: Consecutive Array

Posted by Sam Gavis-Hughson

Coding Interview Question: Given an unsorted array, find the length of the longest sequence of consecutive numbers in the array. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Medium, Sorting 5 Comments
Zero Matrix: Coding Interview Question

Coding Interview Question: Zero Matrix

Posted by Sam Gavis-Hughson

Coding Interview Question: Given a matrix, update it so that if any cell is true, all the cells in that row and column are true. Click for the solution.

Posted in Coding Interview Questions Tagged Array, Medium 2 Comments

Posts navigation

← Older posts

Dynamic programming crash course for non-geniuses

Download my free guide to learn:

  • How to finally “get” what Dynamic Programming really is – no Ph.D required
  • The not-so-obvious way you can solve any dynamic programming problem fast – and not freeze up during your interview
  • The only 10% of information you need to know to ace your interview – forget all the useless fluff

Enter your email below and get instant access to your free Dynamic Programming guide.

Success! Now check your email to download your free ebook!

There was an error submitting your subscription. Please try again.

Recent Posts

  • Why All Developers Should Conduct Interviews
  • FAANG Interview – Big 5 Coding Prep
  • 3 Ways to Ace Your System Design Interview
  • Finding a brute force solution

Interview Cake

Interview Cake

Interview Cake is an awesome resource for more practice interview questions. Get 50% off for a limited time.

Cracking the Coding Interview

“Cracking

Check out my hands down favorite resource for coding interview prep here.

Made in NYC
[email protected]
Youtube

© Byte by Byte 2016-2019

Privacy Policy
Terms and Conditions

Sam Gavis-Hughson is a software engineer based in New York City. Through Byte by Byte, he publishes regular coding interview question videos, demonstrating proper interview techniques. He also helps many students by offering practice coding interviews to help them get jobs at Google, Facebook, and other exciting tech companies.