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