Given an array of integers arr, write a function that returns true if and only if the number of occu...
Given an array of distinct integers arr, find all pairs of elements with the minimum absolute differ...
Given a string text, you want to use the characters of text to form as many instances of the word &q...
Given a date, return the corresponding day of the week for that date. The input is given as three in...
A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pair...
Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) ...
You are given an array of strings words and a string chars. A string is good if it can be formed by ...
Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day n...
The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+...
Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if ...