A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of t...
Three stones are on a number line at positions a, b, and c. Each turn, you pick up a stone at an end...
We are given a matrix with R rows and C columns has cells with integer coordinates (r, c), where 0 &...
You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path r...
A valid parentheses string is either empty (""), "(" + A + ")", or A +...
Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a bi...
Given an array of integers arr, return true if we can partition the array into three non-empty parts...
Every non-negative integer N has a binary representation. For example, 5 can be represented as "...
Given an array A of integers, we must modify the array in the following way: we choose an i and repl...
Given an array A of strings made only from lowercase letters, return a list of all characters that s...