Best newsletters and posts about Daily Coding Problem tag


Newsletters

Daily Coding Problem

Get exceptionally good at coding interviews by solving one problem every day.

Messages

9/18/2021 3:34:31 PM

Daily Coding Problem: Problem #530 [Easy]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Google. The edit distance between two
9/17/2021 3:34:27 PM

Daily Coding Problem: Problem #529 [Hard]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Google. Given a string, split it into as
9/16/2021 3:34:28 PM

Daily Coding Problem: Problem #528 [Easy]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Amazon. Huffman coding is a method of
9/19/2021 3:34:27 PM

Daily Coding Problem: Problem #531 [Easy]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked Microsoft. Using a read7() method that
9/15/2021 3:34:27 PM

Daily Coding Problem: Problem #527 [Medium]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Microsoft. Write a program to determine
9/20/2021 3:34:26 PM

Daily Coding Problem: Problem #532 [Medium]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Google. On our special chessboard, two
9/14/2021 3:34:27 PM

Daily Coding Problem: Problem #526 [Easy]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Yahoo. You are given a string of length N
9/13/2021 3:34:27 PM

Daily Coding Problem: Problem #525 [Easy]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Amazon. Given a N by M matrix of numbers,
9/21/2021 3:54:27 PM

Daily Coding Problem: Problem #533 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Boggle is a game played on a 4 x 4 grid of letters. The goal is to find as
9/12/2021 3:34:27 PM

Daily Coding Problem: Problem #524 [Medium]

Daily Coding Problem Good morning! Here's a solution to yesterday's problem. This is your coding interview problem for today. This problem was asked by Amazon. Given an array of numbers, find
9/27/2021 3:54:27 PM

Daily Coding Problem: Problem #539 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Pandora. Given an undirected graph, determine if it contains a cycle. Upgrade to premium
9/28/2021 3:54:27 PM

Daily Coding Problem: Problem #540 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Morgan Stanley. In Ancient Greece, it was common to write text with the first line going
9/26/2021 3:54:26 PM

Daily Coding Problem: Problem #538 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Given a set of characters C and an integer k , a De Bruijn sequence is a
9/25/2021 3:54:28 PM

Daily Coding Problem: Problem #537 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. A Collatz sequence in mathematics can be defined as follows. Starting with any
9/29/2021 4:04:29 PM

Daily Coding Problem: Problem #541 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Run-length encoding is a fast and simple method of encoding strings. The basic
9/24/2021 3:54:26 PM

Daily Coding Problem: Problem #536 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the sequence of keys visited by a postorder traversal of a binary search
9/30/2021 3:54:27 PM

Daily Coding Problem: Problem #542 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Given an undirected graph G, check whether it is bipartite. Recall that a graph
9/23/2021 3:54:27 PM

Daily Coding Problem: Problem #535 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Goldman Sachs. You are given N identical eggs and access to a building with k floors.
10/1/2021 4:04:28 PM

Daily Coding Problem: Problem #543 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a singly linked list and an integer k, remove the k th last element from
10/2/2021 3:54:27 PM

Daily Coding Problem: Problem #544 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a list of integers S and a target number k, write a function that returns
10/15/2021 3:54:27 PM

Daily Coding Problem: Problem #557 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Suppose you have a multiplication table that is N by N. That is, a 2D array where
10/27/2021 5:04:26 PM

Daily Coding Problem: Problem #569 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an array of numbers of length N , find both the minimum and maximum
10/26/2021 3:54:28 PM

Daily Coding Problem: Problem #568 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a sorted list of integers, square the elements and give the output in
10/28/2021 3:54:29 PM

Daily Coding Problem: Problem #570 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given two non-empty binary trees s and t , check whether tree t has exactly the
10/25/2021 4:04:29 PM

Daily Coding Problem: Problem #567 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first
10/29/2021 3:54:27 PM

Daily Coding Problem: Problem #571 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. The Tower of Hanoi is a puzzle game with three rods and n disks, each a different size. All the disks start off on
10/24/2021 3:54:27 PM

Daily Coding Problem: Problem #566 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. A graph is minimally-connected if it is connected and there is no edge that
10/23/2021 3:54:26 PM

Daily Coding Problem: Problem #565 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Pinterest. Given an integer list where each number represents the number of hops you can
10/30/2021 3:54:27 PM

Daily Coding Problem: Problem #572 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Palantir. Given a number represented by a list of digits, find the next greater
10/22/2021 4:04:27 PM

Daily Coding Problem: Problem #564 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. Given a list of integers, write a function that returns the largest sum of non-
4/8/2022 4:54:27 PM

Daily Coding Problem: Problem #725 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Consider the following scenario: there are N mice and N holes placed at integer
4/9/2022 4:54:31 PM

Daily Coding Problem: Problem #726 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement the singleton pattern with a twist. First, instead of storing one
4/7/2022 5:04:27 PM

Daily Coding Problem: Problem #724 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Suppose an arithmetic expression is given as a binary tree. Each leaf is an
4/10/2022 4:44:27 PM

Daily Coding Problem: Problem #727 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Compute the running median of a sequence of numbers. That is, given a stream
4/6/2022 4:54:27 PM

Daily Coding Problem: Problem #723 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers
4/11/2022 4:44:27 PM

Daily Coding Problem: Problem #728 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A teacher must divide a class of students into two teams to play dodgeball.
4/5/2022 5:04:27 PM

Daily Coding Problem: Problem #722 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Spotify. There are N couples sitting in a row of length 2 * N . They are currently
4/13/2022 5:04:28 PM

Daily Coding Problem: Problem #730 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. What will this code print out? def make_functions(): flist = [] for i in [1, 2,
4/16/2022 4:44:32 PM

Daily Coding Problem: Problem #733 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Salesforce. Connect 4 is a game where opponents take turns dropping red or black discs
4/22/2022 4:44:26 PM

Daily Coding Problem: Problem #739 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A quack is a data structure combining properties of both stacks and queues. It
4/23/2022 4:54:28 PM

Daily Coding Problem: Problem #740 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A regular number in mathematics is defined as one which evenly divides some
4/25/2022 4:44:26 PM

Daily Coding Problem: Problem #742 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. Write a function to flatten a nested dictionary. Namespace the keys with a
4/24/2022 4:44:30 PM

Daily Coding Problem: Problem #741 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a string consisting of parentheses, single digits, and positive and
4/21/2022 5:14:27 PM

Daily Coding Problem: Problem #738 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a string s and an integer k, break up the string into multiple lines such
5/9/2022 5:24:27 PM

Daily Coding Problem: Problem #752 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Print the nodes in a binary tree level-wise. For example, the following
5/25/2022 5:04:28 PM

Daily Coding Problem: Problem #768 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an array of numbers of length N , find both the minimum and maximum
5/26/2022 4:54:58 PM

Daily Coding Problem: Problem #769 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Two Sigma. Alice wants to join her school's Probability Student Club. Membership
5/24/2022 4:54:43 PM

Daily Coding Problem: Problem #767 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a word W and a string S , find all starting indices in S which are
5/27/2022 4:54:57 PM

Daily Coding Problem: Problem #770 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. The game of Nim is played as follows. Starting with three heaps, each containing
5/28/2022 4:44:27 PM

Daily Coding Problem: Problem #771 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Bloomberg. Determine whether there exists a one-to-one character mapping from one string
5/23/2022 5:04:27 PM

Daily Coding Problem: Problem #766 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. You are given a string consisting of the letters x and y , such as xyxxxyxyy .
5/22/2022 4:44:26 PM

Daily Coding Problem: Problem #765 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a singly linked list and an integer k, remove the k th last element from
5/21/2022 4:44:26 PM

Daily Coding Problem: Problem #764 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. Given a list of numbers, create an algorithm that arranges them in order to
5/29/2022 4:44:27 PM

Daily Coding Problem: Problem #772 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Boggle is a game played on a 4 x 4 grid of letters. The goal is to find as
6/18/2022 4:44:31 PM

Daily Coding Problem: Problem #792 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. You have N stones in a row, and would like to create from them a pyramid. This
6/19/2022 4:44:26 PM

Daily Coding Problem: Problem #793 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yahoo. Recall that a full binary tree is one in which each node is either a leaf node,
6/24/2022 4:44:27 PM

Daily Coding Problem: Problem #798 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given a set of synonyms, such as (big, large) and (eat, consume) . Using
6/25/2022 4:45:23 PM

Daily Coding Problem: Problem #799 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement a PrefixMapSum class with the following methods: insert(key: str,
6/23/2022 4:54:32 PM

Daily Coding Problem: Problem #797 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Alibaba. Given an even number (greater than 2), return two prime numbers whose sum will
6/26/2022 4:54:38 PM

Daily Coding Problem: Problem #800 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Fitbit. Given a linked list, rearrange the node values such that they appear in
6/22/2022 4:44:31 PM

Daily Coding Problem: Problem #796 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Nvidia. You are given a list of N points (x 1 , y 1 ) , (x 2 , y 2 ) , ..., (x N , y N )
6/27/2022 4:44:29 PM

Daily Coding Problem: Problem #801 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Zillow. Let's define a "sevenish" number to be one which is either a power
6/21/2022 4:44:27 PM

Daily Coding Problem: Problem #795 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. Assume you have access to a function toss_biased() which returns 0 or 1 with a
6/28/2022 4:44:27 PM

Daily Coding Problem: Problem #802 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Triplebyte. You are given n numbers as well as n probabilities that sum up to 1. Write a
7/9/2022 4:44:28 PM

Daily Coding Problem: Problem #813 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an array of integers, write a function to determine whether the array
7/15/2022 5:04:28 PM

Daily Coding Problem: Problem #819 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a array of numbers representing the stock prices of a company in
7/24/2022 5:04:31 PM

Daily Coding Problem: Problem #828 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Write a program to determine how many distinct ways there are to create a max
7/23/2022 5:04:26 PM

Daily Coding Problem: Problem #827 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Spotify. You are the technical director of WSPT radio, serving listeners nationwide. For
7/25/2022 5:04:26 PM

Daily Coding Problem: Problem #829 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Create a data structure that performs all the following operations in O(1) time
7/22/2022 5:04:27 PM

Daily Coding Problem: Problem #826 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement a file syncing algorithm for two computers over a low-bandwidth
7/26/2022 5:04:28 PM

Daily Coding Problem: Problem #830 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. Given a list of numbers, create an algorithm that arranges them in order to
7/27/2022 5:04:26 PM

Daily Coding Problem: Problem #831 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Given a string s and a list of words words , where each word is the same length
7/21/2022 5:04:27 PM

Daily Coding Problem: Problem #825 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a sorted list of integers, square the elements and give the output in
7/28/2022 5:14:27 PM

Daily Coding Problem: Problem #832 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of elements, return the length of the longest subarray where all
8/5/2022 5:04:28 PM

Daily Coding Problem: Problem #840 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by PayPal. Given a string and a number of lines k , print the string in zigzag form. In
8/6/2022 4:44:27 PM

Daily Coding Problem: Problem #841 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. Given integers M and N , write a program that counts how many positive
8/9/2022 4:54:28 PM

Daily Coding Problem: Problem #844 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. A Boolean formula can be said to be satisfiable if there is a way to assign
8/23/2022 4:54:47 PM

Daily Coding Problem: Problem #857 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. You are given a binary tree in a peculiar string representation. Each node is
8/24/2022 4:54:49 PM

Daily Coding Problem: Problem #858 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Compute the running median of a sequence of numbers. That is, given a stream
8/22/2022 4:44:27 PM

Daily Coding Problem: Problem #856 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. You are given a list of (website, user) pairs that represent users visiting
8/25/2022 4:44:28 PM

Daily Coding Problem: Problem #859 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. The horizontal distance of a binary tree node describes how far left or right the
8/22/2022 3:25:09 AM

Daily Coding Problem: Problem #853 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. Find an efficient algorithm to find the smallest distance (measured in number of words) between any two given
8/26/2022 4:44:27 PM

Daily Coding Problem: Problem #860 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Implement regular expression matching with the following special characters: .
8/22/2022 3:14:45 AM

Daily Coding Problem: Problem #854 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a string s and an integer k, break up the string into multiple lines such
8/27/2022 4:44:28 PM

Daily Coding Problem: Problem #861 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Two Sigma. A knight is placed on a given square on an 8 x 8 chessboard. It is then moved
8/22/2022 3:09:15 AM

Daily Coding Problem: Problem #855 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. You have an N by N board. Write a function that, given N, returns the number
9/6/2022 4:44:27 PM

Daily Coding Problem: Problem #871 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Grammarly. Soundex is an algorithm used to categorize phonetically, such that two names
9/10/2022 4:44:28 PM

Daily Coding Problem: Problem #875 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Suppose we represent our file system by a string in the following manner: The
9/17/2022 4:44:27 PM

Daily Coding Problem: Problem #882 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. An 8-puzzle is a game played on a 3 x 3 board of tiles, with the ninth tile
9/20/2022 4:54:31 PM

Daily Coding Problem: Problem #885 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of strictly the characters 'R', 'G', and 'B
9/21/2022 4:44:27 PM

Daily Coding Problem: Problem #886 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. The edit distance between two strings refers to the minimum number of character
9/22/2022 4:44:28 PM

Daily Coding Problem: Problem #887 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Palantir. The ancient Egyptians used to express fractions as a sum of several terms
9/23/2022 4:44:28 PM

Daily Coding Problem: Problem #888 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Given a list of points, a central point, and an integer k , find the nearest k
9/19/2022 4:44:26 PM

Daily Coding Problem: Problem #884 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Two Sigma. Using a function rand7() that returns an integer from 1 to 7 (inclusive) with
9/24/2022 4:44:32 PM

Daily Coding Problem: Problem #889 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Run-length encoding is a fast and simple method of encoding strings. The basic
9/18/2022 4:44:27 PM

Daily Coding Problem: Problem #883 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by PagerDuty. Given a positive integer N , find the smallest number of steps it will take
9/16/2022 4:44:27 PM

Daily Coding Problem: Problem #881 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Implement a 2D iterator class. It will be initialized with an array of arrays, and
9/15/2022 4:44:26 PM

Daily Coding Problem: Problem #880 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a string, split it into as few strings as possible such that each string
10/13/2022 4:54:27 PM

Daily Coding Problem: Problem #903 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given an array of numbers and a number k , determine if there are three
10/14/2022 4:44:26 PM

Daily Coding Problem: Problem #904 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the root of a binary tree, return a deepest node. For example, in the
10/15/2022 4:44:27 PM

Daily Coding Problem: Problem #905 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Given a list of words, determine whether the words can be chained to form a
10/18/2022 4:44:27 PM

Daily Coding Problem: Problem #908 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an N by M 2D matrix of lowercase letters. Determine the minimum
10/20/2022 4:44:26 PM

Daily Coding Problem: Problem #910 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. You are given an array of integers, where each element represents the maximum
10/22/2022 4:44:27 PM

Daily Coding Problem: Problem #912 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yext. Two nodes in a binary tree can be called cousins if they are on the same level of
10/21/2022 4:44:26 PM

Daily Coding Problem: Problem #911 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a stream of elements too large to store in memory, pick a random element
10/23/2022 4:44:27 PM

Daily Coding Problem: Problem #913 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a complete binary tree, count the number of nodes in faster than O(n) time
10/24/2022 5:14:29 PM

Daily Coding Problem: Problem #914 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Netflix. Implement a queue using a set of fixed-length arrays. The queue should support
10/19/2022 4:54:27 PM

Daily Coding Problem: Problem #909 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers
10/25/2022 4:54:30 PM

Daily Coding Problem: Problem #915 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. You are given an array X of floating-point numbers x 1 , x 2 , ... x n . These
10/17/2022 4:54:30 PM

Daily Coding Problem: Problem #907 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Gray code is a binary code where each successive value differ in only one bit, as
10/26/2022 4:44:26 PM

Daily Coding Problem: Problem #916 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the head of a singly linked list, reverse it in-place. Upgrade to premium
10/16/2022 4:44:27 PM

Daily Coding Problem: Problem #906 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of points (x, y) on a 2D cartesian plane, find the two closest
11/11/2022 5:54:40 PM

Daily Coding Problem: Problem #932 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitch. Describe what happens when you type a URL into your browser and press Enter.
11/17/2022 5:44:28 PM

Daily Coding Problem: Problem #938 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Citrix. You are given a circular lock with three wheels, each of which display the
11/18/2022 7:14:37 PM

Daily Coding Problem: Problem #939 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a N by M matrix of numbers, print out the matrix in a clockwise spiral.
11/19/2022 5:54:28 PM

Daily Coding Problem: Problem #940 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A network consists of nodes labeled 0 to N . You are given a list of edges (a,
11/21/2022 5:54:36 PM

Daily Coding Problem: Problem #942 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a string of parentheses, write a function to compute the minimum number of
11/22/2022 5:44:26 PM

Daily Coding Problem: Problem #943 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Wayfair. You are given a 2 x N board, and instructed to completely cover the board with
11/20/2022 7:24:49 PM

Daily Coding Problem: Problem #941 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. Suppose you are given a table of currency exchange rates, represented as a
11/23/2022 5:54:36 PM

Daily Coding Problem: Problem #944 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by IBM. Given an integer, find the next permutation of it in absolute order. For example,
11/24/2022 5:44:27 PM

Daily Coding Problem: Problem #945 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Given a tree where each edge has a weight, compute the length of the longest path
11/16/2022 5:54:31 PM

Daily Coding Problem: Problem #937 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You're given a string consisting solely of ( , ) , and * . * can represent
11/25/2022 5:44:26 PM

Daily Coding Problem: Problem #946 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stitch Fix. Pascal's triangle is a triangular array of integers constructed with the
12/12/2022 5:34:27 PM

Daily Coding Problem: Problem #963 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given two singly linked lists that intersect at some point, find the
12/18/2022 5:24:33 PM

Daily Coding Problem: Problem #969 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a matrix of 1s and 0s, return the number of "islands" in the
12/19/2022 5:44:31 PM

Daily Coding Problem: Problem #970 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. You have a large array with most of the elements as zero. Use a more space-
12/21/2022 5:34:27 PM

Daily Coding Problem: Problem #972 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by IBM. Given a string with repeated characters, rearrange the string so that no two
12/22/2022 5:34:26 PM

Daily Coding Problem: Problem #973 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the
12/23/2022 5:34:30 PM

Daily Coding Problem: Problem #974 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a string consisting of parentheses, single digits, and positive and
12/20/2022 5:34:27 PM

Daily Coding Problem: Problem #971 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an N by N matrix, rotate it by 90 degrees clockwise. For example, given
12/24/2022 5:34:27 PM

Daily Coding Problem: Problem #975 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. You are going on a road trip, and would like to create a suitable music playlist.
12/16/2022 9:24:38 AM

Daily Coding Problem: Problem #965 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. UTF-8 is a character encoding that maps each symbol to one, two, three, or four
12/25/2022 5:34:28 PM

Daily Coding Problem: Problem #976 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A cryptarithmetic puzzle is a mathematical game where the digits of some numbers
12/26/2022 5:34:36 PM

Daily Coding Problem: Problem #977 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement a URL shortener with the following methods: shorten(url) , which
12/30/2022 5:44:28 PM

Daily Coding Problem: Problem #981 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Describe an algorithm to compute the longest increasing subsequence of an
1/10/2023 5:54:41 PM

Daily Coding Problem: Problem #992 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Given the root to a binary search tree, find the second largest node in the
1/20/2023 7:04:28 PM

Daily Coding Problem: Problem #998 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an undirected graph represented as an adjacency matrix and an integer k,
1/21/2023 6:34:26 PM

Daily Coding Problem: Problem #999 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Suppose you have a multiplication table that is N by N. That is, a 2D array where
1/20/2023 6:34:45 AM

Daily Coding Problem: Problem #993 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MongoDB. Given a list of elements, find the majority element, which appears more than
1/22/2023 6:34:38 PM

Daily Coding Problem: Problem #1000 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Suppose an array sorted in ascending order is rotated at some pivot unknown to you
1/20/2023 5:34:54 AM

Daily Coding Problem: Problem #994 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Print the nodes in a binary tree level-wise. For example, the following
1/23/2023 6:44:28 PM

Daily Coding Problem: Problem #1001 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Determine whether a tree is a valid binary search tree. A binary search tree
1/20/2023 4:54:45 AM

Daily Coding Problem: Problem #995 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Given an array of integers, return a new array such that each element at index i
1/24/2023 6:54:33 PM

Daily Coding Problem: Problem #1002 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a sorted array, find the smallest positive integer that is not the sum of
1/25/2023 6:34:27 PM

Daily Coding Problem: Problem #1003 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. The transitive closure of a graph is a measure of which vertices are
1/26/2023 6:44:28 PM

Daily Coding Problem: Problem #1004 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Goldman Sachs. Given a list of numbers L , implement a method sum(i, j) which returns
1/27/2023 7:04:29 PM

Daily Coding Problem: Problem #1005 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MIT. Blackjack is a two player card game whose rules are as follows: The player and then
1/20/2023 3:14:53 AM

Daily Coding Problem: Problem #996 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Recall that the minimum spanning tree is the subset of edges of a tree that
1/28/2023 6:34:27 PM

Daily Coding Problem: Problem #1006 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Suppose you are given two lists of n points, one list p 1 , p 2 , ..., p n on
1/20/2023 2:55:03 AM

Daily Coding Problem: Problem #997 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the root to a binary tree, implement serialize(root) , which serializes
1/30/2023 6:34:27 PM

Daily Coding Problem: Problem #1008 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Salesforce. Given an array of integers, find the maximum XOR of any two elements.
1/29/2023 6:34:26 PM

Daily Coding Problem: Problem #1007 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Oracle. You are presented with an 8 by 8 matrix representing the positions of pieces on
1/31/2023 6:44:27 PM

Daily Coding Problem: Problem #1009 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Coursera. Given a 2D board of characters and a word, find if the word exists in the grid
1/9/2023 5:54:29 PM

Daily Coding Problem: Problem #991 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. What will this code print out? def make_functions(): flist = [] for i in [1, 2,
2/1/2023 6:44:27 PM

Daily Coding Problem: Problem #1010 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. The United States uses the imperial system of weights and measures, which
1/8/2023 5:54:29 PM

Daily Coding Problem: Problem #990 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. There exists a staircase with N steps, and you can climb up either 1 or 2 steps
2/2/2023 6:44:27 PM

Daily Coding Problem: Problem #1011 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Nvidia. Find the maximum of two numbers without using any if-else statements, branching,
1/7/2023 5:54:32 PM

Daily Coding Problem: Problem #989 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Snapchat. You are given an array of length N , where each element i represents the
2/3/2023 6:34:26 PM

Daily Coding Problem: Problem #1012 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. Given a real number n , find the square root of n. For example, given n = 9 , return 3 . Upgrade to premium and
1/6/2023 6:14:29 PM

Daily Coding Problem: Problem #988 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a positive integer n , find the smallest number of squared integers
2/4/2023 6:44:29 PM

Daily Coding Problem: Problem #1013 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yahoo. Write a function that returns the bitwise AND of all integers between M and N ,
1/5/2023 5:54:28 PM

Daily Coding Problem: Problem #987 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of numbers and an index i , return the index of the nearest
1/4/2023 5:44:29 PM

Daily Coding Problem: Problem #986 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. Given an integer n , return the length of the longest consecutive run of 1 s in
2/5/2023 6:44:28 PM

Daily Coding Problem: Problem #1014 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a start word, an end word, and a dictionary of valid words, find the
1/3/2023 5:44:26 PM

Daily Coding Problem: Problem #985 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. One way to unlock an Android phone is through a pattern of swipes across a 1-9
2/6/2023 6:45:39 PM

Daily Coding Problem: Problem #1015 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. In a directed graph, each node is assigned an uppercase letter. We define a
1/2/2023 5:54:28 PM

Daily Coding Problem: Problem #984 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a string of parentheses, find the balanced string that can be produced
2/7/2023 6:45:15 PM

Daily Coding Problem: Problem #1016 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Huffman coding is a method of encoding characters based on their frequency. Each
1/1/2023 5:44:26 PM

Daily Coding Problem: Problem #983 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a binary tree, return all paths from the root to leaves. For example,
12/31/2022 5:44:27 PM

Daily Coding Problem: Problem #982 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A strobogrammatic number is a positive number that appears the same after being
2/8/2023 7:14:29 PM

Daily Coding Problem: Problem #1017 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. Given a list, sort it using this method: reverse(lst, i, j) , which reverses lst from i to j . Upgrade to premium
2/19/2023 6:34:26 PM

Daily Coding Problem: Problem #1022 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of integers where every integer occurs three times except for one
2/18/2023 6:34:26 PM

Daily Coding Problem: Problem #1021 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Cisco. Given an unsigned 8-bit integer, swap its even and odd bits. The 1st and 2nd bit
2/20/2023 6:34:27 PM

Daily Coding Problem: Problem #1023 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. You come across a dictionary of sorted words in a language you've never seen
2/21/2023 6:44:27 PM

Daily Coding Problem: Problem #1024 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a 32-bit integer, return the number with its bits reversed. For example,
2/22/2023 6:44:36 PM

Daily Coding Problem: Problem #1025 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a linked list, remove all consecutive nodes that sum to zero. Print out
2/23/2023 7:04:31 PM

Daily Coding Problem: Problem #1026 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Palantir. Write an algorithm to justify text. Given a sequence of words and an integer
2/24/2023 6:44:31 PM

Daily Coding Problem: Problem #1027 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given an unsorted array of integers, find the length of the longest
2/25/2023 6:44:30 PM

Daily Coding Problem: Problem #1028 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Salesforce. The number 6174 is known as Kaprekar's contant, after the mathematician
2/11/2023 6:34:27 PM

Daily Coding Problem: Problem #1020 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the root of a binary search tree, and a target K , return two nodes in the
2/26/2023 6:34:27 PM

Daily Coding Problem: Problem #1029 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Find the minimum number of coins required to make n cents. You can use standard
2/10/2023 6:54:42 PM

Daily Coding Problem: Problem #1019 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given two rectangles on a 2D graph, return the area of their intersection. If
2/9/2023 6:44:27 PM

Daily Coding Problem: Problem #1018 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given a clock time in hh:mm format, determine, to the nearest degree, the
2/27/2023 6:34:27 PM

Daily Coding Problem: Problem #1030 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. On a mysterious island there are creatures known as Quxes which come in three
12/29/2022 5:34:29 PM

Daily Coding Problem: Problem #980 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. On our special chessboard, two bishops attack each other if they share the same
2/28/2023 6:34:27 PM

Daily Coding Problem: Problem #1031 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Flipkart. Snakes and Ladders is a game played on a 10 x 10 board, the goal of which is
12/28/2022 5:34:27 PM

Daily Coding Problem: Problem #979 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Conway's Game of Life takes place on an infinite two-dimensional board of
3/1/2023 6:45:33 PM

Daily Coding Problem: Problem #1032 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. In linear algebra, a Toeplitz matrix is one in which the elements on any given
12/27/2022 5:34:28 PM

Daily Coding Problem: Problem #978 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Given a string, return whether it represents a number. Here are the different
3/2/2023 6:55:12 PM

Daily Coding Problem: Problem #1033 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given an array of positive integers, divide the array into two subsets such
12/16/2022 8:58:26 AM

Daily Coding Problem: Problem #966 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Snapchat. Given the head to a singly linked list, where each node also has a “random”
3/3/2023 6:35:07 PM

Daily Coding Problem: Problem #1034 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. You have n fair coins and you flip them all at the same time. Any that come
12/13/2022 5:24:30 PM

Daily Coding Problem: Problem #964 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. You run an e-commerce website and want to record the last N order ids in a log.
3/4/2023 6:34:27 PM

Daily Coding Problem: Problem #1035 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Atlassian. MegaCorp wants to give bonuses to its employees based on how many lines of
12/11/2022 5:34:27 PM

Daily Coding Problem: Problem #962 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A knight's tour is a sequence of moves by a knight on a chessboard such that
12/10/2022 5:24:28 PM

Daily Coding Problem: Problem #961 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Given an absolute pathname that may have . or .. as part of it, return the
3/5/2023 6:24:29 PM

Daily Coding Problem: Problem #1036 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the sequence of keys visited by a postorder traversal of a binary search
12/9/2022 5:24:29 PM

Daily Coding Problem: Problem #960 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an array of nonnegative integers. Let's say you start at the
3/6/2023 6:44:46 PM

Daily Coding Problem: Problem #1037 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Etsy. Given a sorted array, convert it into a height-balanced binary search tree.
12/8/2022 5:24:28 PM

Daily Coding Problem: Problem #959 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Pivotal. Write an algorithm that finds the total number of set bits in all integers
3/7/2023 6:44:28 PM

Daily Coding Problem: Problem #1038 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a string of words delimited by spaces, reverse the words in string. For
3/8/2023 6:34:27 PM

Daily Coding Problem: Problem #1039 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. You are given an array of length 24 , where each element represents the number
12/7/2022 5:34:27 PM

Daily Coding Problem: Problem #958 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an unordered list of flights taken by someone, each represented as (
3/9/2023 6:44:29 PM

Daily Coding Problem: Problem #1040 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Implement an efficient string matching algorithm. That is, given a string of
3/16/2023 5:44:33 PM

Daily Coding Problem: Problem #1046 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Given a string, find the palindrome that can be made by inserting the fewest
3/19/2023 5:24:34 PM

Daily Coding Problem: Problem #1049 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an array of a million integers between zero and a billion, out of order,
3/20/2023 5:24:34 PM

Daily Coding Problem: Problem #1050 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A permutation can be specified by an array P , where P[i] represents the
3/21/2023 5:34:28 PM

Daily Coding Problem: Problem #1051 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. An sorted array of integers was rotated an unknown number of times. Given such
3/22/2023 5:24:32 PM

Daily Coding Problem: Problem #1052 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A teacher must divide a class of students into two teams to play dodgeball.
3/18/2023 5:14:27 PM

Daily Coding Problem: Problem #1048 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Netflix. A Cartesian tree with sequence S is a binary tree defined by the following two
3/23/2023 5:34:29 PM

Daily Coding Problem: Problem #1053 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. A rule looks like this: A NE B This means this means point A is located northeast
3/17/2023 5:25:28 PM

Daily Coding Problem: Problem #1047 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. Write a map implementation with a get function that lets you retrieve the value
3/24/2023 5:34:26 PM

Daily Coding Problem: Problem #1054 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement the singleton pattern with a twist. First, instead of storing one
3/16/2023 2:59:40 PM

Daily Coding Problem: Problem #1045 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Describe and give an example of each of the following types of polymorphism:
3/25/2023 5:24:33 PM

Daily Coding Problem: Problem #1055 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a node in a binary search tree, return the next bigger element, also known
3/14/2023 5:24:45 PM

Daily Coding Problem: Problem #1044 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a string and a set of delimiters, reverse the words in the string while
3/26/2023 5:24:30 PM

Daily Coding Problem: Problem #1056 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Epic. The "look and say" sequence is defined as follows: beginning with the
3/12/2023 5:44:28 PM

Daily Coding Problem: Problem #1043 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an iterator with methods next() and hasNext() , create a wrapper iterator,
3/27/2023 6:04:31 PM

Daily Coding Problem: Problem #1057 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an integer N , construct all possible binary search trees with N nodes.
3/11/2023 7:24:59 PM

Daily Coding Problem: Problem #1042 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by YouTube. Write a program that computes the length of the longest common subsequence of
3/10/2023 7:04:32 PM

Daily Coding Problem: Problem #1041 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. You are given an array of non-negative integers that represents a two-
3/28/2023 5:25:17 PM

Daily Coding Problem: Problem #1058 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Given an undirected graph G, check whether it is bipartite. Recall that a graph
12/6/2022 5:24:31 PM

Daily Coding Problem: Problem #957 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by VMware. The skyline of a city is composed of several buildings of various widths and
3/29/2023 5:24:32 PM

Daily Coding Problem: Problem #1059 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Word sense disambiguation is the problem of determining which sense a word takes
12/5/2022 5:24:36 PM

Daily Coding Problem: Problem #956 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given k sorted singly linked lists, write a function to merge all the lists into
3/30/2023 5:24:35 PM

Daily Coding Problem: Problem #1060 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a function f , and N return a debounced f of N milliseconds. That is, as
12/4/2022 5:24:29 PM

Daily Coding Problem: Problem #955 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Suppose an arithmetic expression is given as a binary tree. Each leaf is an
3/31/2023 5:24:32 PM

Daily Coding Problem: Problem #1061 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an M by N matrix consisting of booleans that represents a board.
12/3/2022 5:24:29 PM

Daily Coding Problem: Problem #954 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A unival tree (which stands for "universal value") is a tree where all
12/2/2022 5:24:29 PM

Daily Coding Problem: Problem #953 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. Given a list of integers, write a function that returns the largest sum of non-
4/1/2023 5:24:31 PM

Daily Coding Problem: Problem #1062 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given the head of a singly linked list, swap every two nodes and return its head
12/1/2022 10:44:28 PM

Daily Coding Problem: Problem #952 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Slack. You are given a string formed by concatenating several words corresponding to the
4/2/2023 5:24:28 PM

Daily Coding Problem: Problem #1063 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Sumo Logic. Given a array that's sorted but rotated at some unknown pivot, in which
11/30/2022 5:54:28 PM

Daily Coding Problem: Problem #951 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a stack of N elements, interleave the first half of the stack with the
4/3/2023 5:25:02 PM

Daily Coding Problem: Problem #1064 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Two Sigma. Using a function rand5() that returns an integer from 1 to 5 (inclusive) with
11/29/2022 6:04:29 PM

Daily Coding Problem: Problem #950 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. You are given a list of data entries that represent entries and exits of groups
4/4/2023 5:34:28 PM

Daily Coding Problem: Problem #1065 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yahoo. Write an algorithm that computes the reversal of a directed graph. For example,
11/28/2022 5:44:27 PM

Daily Coding Problem: Problem #949 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. Implement an autocomplete system. That is, given a query string s and a set of
4/5/2023 5:24:36 PM

Daily Coding Problem: Problem #1066 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. The stable marriage problem is defined as follows: Suppose you have N men and N
11/27/2022 5:44:27 PM

Daily Coding Problem: Problem #948 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. The Tower of Hanoi is a puzzle game with three rods and n disks, each a different size. All the disks start off on
4/6/2023 5:34:27 PM

Daily Coding Problem: Problem #1067 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by BufferBox. Given a binary tree where all nodes are either 0 or 1 , prune the tree so
11/26/2022 6:04:28 PM

Daily Coding Problem: Problem #947 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Oracle. We say a number is sparse if there are no adjacent ones in its binary
11/15/2022 5:55:08 PM

Daily Coding Problem: Problem #936 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a binary search tree and a range [a, b] (inclusive), return the sum of the
4/7/2023 5:25:33 PM

Daily Coding Problem: Problem #1068 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. You are given an string representing the initial conditions of some dominoes.
4/8/2023 5:34:30 PM

Daily Coding Problem: Problem #1069 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. In front of you is a row of N coins, with values v 1 , v 1 , ..., v n . You are
11/14/2022 5:54:30 PM

Daily Coding Problem: Problem #935 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by PayPal. Given a binary tree, determine whether or not it is height-balanced. A height-
4/9/2023 5:25:40 PM

Daily Coding Problem: Problem #1070 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A girl is walking along an apple orchard with a bag in each hand. She likes to
4/11/2023 5:34:31 PM

Daily Coding Problem: Problem #1072 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a binary tree, return the level of the tree with minimum sum. Upgrade to
4/10/2023 5:24:46 PM

Daily Coding Problem: Problem #1071 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a list of integers S and a target number k, write a function that returns
4/20/2023 5:25:42 PM

Daily Coding Problem: Problem #1078 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a binary tree of integers, find the maximum path sum between two nodes.
4/21/2023 5:24:49 PM

Daily Coding Problem: Problem #1079 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given an array of integers in which two elements appear exactly once and all
4/19/2023 5:14:28 PM

Daily Coding Problem: Problem #1077 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. A tree is symmetric if its data and shape remain unchanged when it is reflected
4/22/2023 5:14:27 PM

Daily Coding Problem: Problem #1080 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given a starting state start , a list of transition probabilities for a
4/19/2023 7:14:49 AM

Daily Coding Problem: Problem #1073 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Implement a job scheduler which takes in a function f and an integer n , and
4/19/2023 6:44:44 AM

Daily Coding Problem: Problem #1074 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. Given a binary tree, find the lowest common ancestor (LCA) of two given nodes
4/23/2023 5:14:28 PM

Daily Coding Problem: Problem #1081 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. Given a 2-D matrix representing an image, a location of a pixel in the screen and a color C , replace the color of
4/19/2023 6:14:40 AM

Daily Coding Problem: Problem #1075 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Implement the function fib(n) , which returns the n th number in the Fibonacci
4/24/2023 5:24:36 PM

Daily Coding Problem: Problem #1082 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Salesforce. Connect 4 is a game where opponents take turns dropping red or black discs
4/25/2023 5:24:41 PM

Daily Coding Problem: Problem #1083 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a number in Roman numeral format, convert it to decimal. The values of
4/26/2023 5:14:45 PM

Daily Coding Problem: Problem #1084 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. reduce (also known as fold ) is a function that takes in an array, a combining
4/19/2023 5:23:17 AM

Daily Coding Problem: Problem #1076 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Squarespace. Write a function, add_subtract , which alternately adds and subtracts
4/27/2023 5:14:39 PM

Daily Coding Problem: Problem #1085 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Snapchat. Given a string of digits, generate all possible valid IP address combinations.
4/28/2023 5:24:46 PM

Daily Coding Problem: Problem #1086 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with
11/13/2022 5:54:33 PM

Daily Coding Problem: Problem #934 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a string, return the first recurring character in it, or null if there is
11/12/2022 5:54:30 PM

Daily Coding Problem: Problem #933 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Pinterest. The sequence [0, 1, ..., N] has been jumbled, and the only clue you have for
4/29/2023 5:14:55 PM

Daily Coding Problem: Problem #1087 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given two strings A and B, return whether or not A can be shifted some number of
11/10/2022 5:44:27 PM

Daily Coding Problem: Problem #931 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given n numbers, find the greatest common denominator between them. For example,
4/30/2023 5:14:44 PM

Daily Coding Problem: Problem #1088 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quantcast. You are presented with an array representing a Boolean expression. The
11/10/2022 11:44:31 AM

Daily Coding Problem: Problem #930 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,
5/1/2023 5:15:23 PM

Daily Coding Problem: Problem #1089 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of integers and a number k, where 1 <= k <= length of the
11/8/2022 5:54:29 PM

Daily Coding Problem: Problem #929 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. A competitive runner would like to create a route that starts and ends at his
5/2/2023 5:24:29 PM

Daily Coding Problem: Problem #1090 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. Given a list of words, find all pairs of unique indices such that the
5/3/2023 5:24:46 PM

Daily Coding Problem: Problem #1091 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A classroom consists of N students, whose friendships can be represented in an
11/7/2022 5:54:27 PM

Daily Coding Problem: Problem #928 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. A number is considered perfect if its digits sum up to exactly 10. Given a
5/4/2023 5:15:01 PM

Daily Coding Problem: Problem #1092 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A regular number in mathematics is defined as one which evenly divides some
11/6/2022 5:44:26 PM

Daily Coding Problem: Problem #927 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. Given a linked list and a positive integer k , rotate the list to the right by k
11/5/2022 4:54:30 PM

Daily Coding Problem: Problem #926 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Given the root of a binary tree, find the most frequent subtree sum. The subtree
5/5/2023 5:16:58 PM

Daily Coding Problem: Problem #1093 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given an array of integers, return a new array where each element in the new
11/4/2022 4:44:29 PM

Daily Coding Problem: Problem #925 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. Write a function to flatten a nested dictionary. Namespace the keys with a
5/6/2023 5:24:34 PM

Daily Coding Problem: Problem #1094 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Given a linked list, uniformly shuffle the nodes. What if we want to prioritize
11/3/2022 4:54:28 PM

Daily Coding Problem: Problem #924 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by WhatsApp. Given an array of integers out of order, determine the bounds of the smallest
5/7/2023 5:15:56 PM

Daily Coding Problem: Problem #1095 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given given a list of rectangles represented by min and max x- and y-
11/2/2022 5:04:28 PM

Daily Coding Problem: Problem #923 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Indeed. Given a 32 -bit positive integer N , determine whether it is a power of four in
5/9/2023 5:24:28 PM

Daily Coding Problem: Problem #1097 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yahoo. You are given a string of length N and a parameter k . The string can be
5/13/2023 5:25:14 PM

Daily Coding Problem: Problem #1101 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Consider the following scenario: there are N mice and N holes placed at integer
5/19/2023 5:34:27 PM

Daily Coding Problem: Problem #1107 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Adobe. You are given a tree with an even number of nodes. Consider each connection
5/20/2023 5:25:12 PM

Daily Coding Problem: Problem #1108 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Pandora. Given an undirected graph, determine if it contains a cycle. Upgrade to premium
5/21/2023 5:24:31 PM

Daily Coding Problem: Problem #1109 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a pivot x , and a list lst , partition the list into three parts. The
5/18/2023 5:24:35 PM

Daily Coding Problem: Problem #1106 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Mailchimp. You are given an array representing the heights of neighboring buildings on a
5/22/2023 5:25:34 PM

Daily Coding Problem: Problem #1110 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Netflix. Given an array of integers, determine whether it contains a Pythagorean triplet
5/17/2023 5:24:38 PM

Daily Coding Problem: Problem #1105 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a multiset of integers, return whether it can be partitioned into two
5/16/2023 5:25:00 PM

Daily Coding Problem: Problem #1104 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. Given a mapping of digits to letters (as in a phone number), and a digit string,
5/23/2023 5:34:49 PM

Daily Coding Problem: Problem #1111 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. At a popular bar, each customer has a set of favorite drinks, and will happily
5/15/2023 5:24:33 PM

Daily Coding Problem: Problem #1103 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Slack. You are given an N by M matrix of 0 s and 1 s. Starting from the top left corner,
5/24/2023 5:35:17 PM

Daily Coding Problem: Problem #1112 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Apple. Given a binary tree, find a minimum path sum from root to a leaf. For example,
5/14/2023 5:34:26 PM

Daily Coding Problem: Problem #1102 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Walmart Labs. There are M people sitting in a row of N seats, where M < N . Your task
5/25/2023 5:34:41 PM

Daily Coding Problem: Problem #1113 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Palantir. A typical American-style crossword puzzle grid is an N x N matrix with black
5/12/2023 5:24:30 PM

Daily Coding Problem: Problem #1100 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Netflix. Given a sorted list of integers of length N , determine if an element x is in
5/26/2023 5:55:26 PM

Daily Coding Problem: Problem #1114 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. On election day, a voting machine writes data in the form (voter_id, candidate_id)
5/12/2023 7:29:30 AM

Daily Coding Problem: Problem #1098 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Oracle. Given a binary search tree, find the floor and ceiling of a given integer. The
5/27/2023 5:24:30 PM

Daily Coding Problem: Problem #1115 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Google. Given an integer n and a list of integers l , write a function that randomly
5/12/2023 7:04:25 AM

Daily Coding Problem: Problem #1099 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an array and a number k that's smaller than the length of the array,
5/8/2023 5:24:27 PM

Daily Coding Problem: Problem #1096 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement an LFU (Least Frequently Used) cache. It should be able to be
11/1/2022 4:44:27 PM

Daily Coding Problem: Problem #922 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement locking in a binary tree. A binary tree node can be locked or unlocked
10/31/2022 4:44:26 PM

Daily Coding Problem: Problem #921 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. An XOR linked list is a more memory efficient doubly linked list. Instead of
10/30/2022 4:34:28 PM

Daily Coding Problem: Problem #920 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Triplebyte. Implement a data structure which carries out the following operations
10/29/2022 4:44:27 PM

Daily Coding Problem: Problem #919 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. A wall consists of several rows of bricks of various integer lengths and
10/28/2022 4:44:28 PM

Daily Coding Problem: Problem #918 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. PageRank is an algorithm used by Google to rank the importance of different
10/27/2022 4:44:26 PM

Daily Coding Problem: Problem #917 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Given a linked list of numbers and a pivot k , partition the linked list so
6/3/2023 5:24:31 PM

Daily Coding Problem: Problem #1116 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. A quack is a data structure combining properties of both stacks and queues. It
10/12/2022 4:54:28 PM

Daily Coding Problem: Problem #902 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Stripe. Given a collection of intervals, find the minimum number of intervals you need
6/4/2023 5:24:30 PM

Daily Coding Problem: Problem #1117 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement 3 stacks using a single list: class Stack: def __init__(self): self
10/11/2022 4:44:27 PM

Daily Coding Problem: Problem #901 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Design a system to crawl and copy all of Wikipedia using a distributed network
6/5/2023 5:26:26 PM

Daily Coding Problem: Problem #1118 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. What does the below code snippet print out? How can we fix the anonymous
10/10/2022 4:54:27 PM

Daily Coding Problem: Problem #900 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an array of numbers, find the maximum sum of any contiguous subarray of
10/8/2022 4:44:27 PM

Daily Coding Problem: Problem #899 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. The 24 game is played as follows. You are given a list of four integers, each
10/7/2022 4:44:28 PM

Daily Coding Problem: Problem #898 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Implement a stack API using only a heap. A stack implements the following
10/6/2022 4:44:26 PM

Daily Coding Problem: Problem #897 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Implement a queue using two stacks. Recall that a queue is a FIFO (first-in,
6/13/2023 5:24:28 PM

Daily Coding Problem: Problem #1126 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Write a program that determines the smallest number of perfect squares that sum up
6/20/2023 5:44:30 PM

Daily Coding Problem: Problem #1133 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. Given a mapping of digits to letters (as in a phone number), and a digit string,
6/20/2023 7:04:58 AM

Daily Coding Problem: Problem #1127 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given a string, find the length of the smallest window that contains every
6/21/2023 5:34:27 PM

Daily Coding Problem: Problem #1134 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Compute the running median of a sequence of numbers. That is, given a stream
6/20/2023 6:26:28 AM

Daily Coding Problem: Problem #1128 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Given a number in the form of a list of digits, return all possible
6/22/2023 5:44:49 PM

Daily Coding Problem: Problem #1135 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. The power set of a set is the set of all its subsets. Write a function that,
6/20/2023 5:54:44 AM

Daily Coding Problem: Problem #1129 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. In chess, the Elo rating system is used to calculate player strengths based on
6/20/2023 5:34:59 AM

Daily Coding Problem: Problem #1130 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Given a tree, find the largest tree/subtree that is a BST. Given a tree, return
6/23/2023 5:34:27 PM

Daily Coding Problem: Problem #1136 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. The horizontal distance of a binary tree node describes how far left or right the
6/24/2023 5:44:27 PM

Daily Coding Problem: Problem #1137 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Jane Street. cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first
6/20/2023 5:25:30 AM

Daily Coding Problem: Problem #1131 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MIT. Blackjack is a two player card game whose rules are as follows: The player and then
6/25/2023 5:36:01 PM

Daily Coding Problem: Problem #1138 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. An sorted array of integers was rotated an unknown number of times. Given such
6/20/2023 5:15:36 AM

Daily Coding Problem: Problem #1132 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Write a function that rotates a list by k elements. For example, [1, 2, 3, 4,
6/26/2023 5:44:31 PM

Daily Coding Problem: Problem #1139 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. Given a binary tree, find the lowest common ancestor (LCA) of two given nodes
6/12/2023 5:24:34 PM

Daily Coding Problem: Problem #1125 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Lyft. Given a list of integers and a number K, return which contiguous elements of the
6/27/2023 6:04:28 PM

Daily Coding Problem: Problem #1140 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. Given a set of characters C and an integer k , a De Bruijn sequence is a
6/12/2023 3:24:45 AM

Daily Coding Problem: Problem #1119 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Etsy. Given an array of numbers N and an integer k , your task is to split N into k
6/28/2023 5:45:37 PM

Daily Coding Problem: Problem #1141 [Medium]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Walmart Labs. There are M people sitting in a row of N seats, where M < N . Your task
6/12/2023 2:55:53 AM

Daily Coding Problem: Problem #1120 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are in an infinite 2D grid where you can move in any of the 8 directions: (x
6/12/2023 2:34:37 AM

Daily Coding Problem: Problem #1121 [Hard]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Affirm. Given a array of numbers representing the stock prices of a company in
6/29/2023 5:54:33 PM

Daily Coding Problem: Problem #1142 [Easy]

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Zillow. Let's define a "sevenish" number to be one which is either a power