Bitwise AND of Range of Numbers
Given two integers start and end, return the bitwise AND of all numbers in [start, end], inclusive.
Given two integers start and end, return the bitwise AND of all numbers in [start, end], inclusive.
You are given a string s containing digits from 0 - 9 and an integer k. Return the number of different ways that s could represent a list of numbers from [1,...
Given two lowercase alphabet strings a and b, return the length of a minimum substring in a that contains all the characters of b.
Given a list of strings lst and a list of integers p, reorder lst so that every lst[i] gets placed to p[i].
Given a list of distinct positive integers nums, find the largest subset such that every pair of elements in the subset (i, j) satisfies either i % j = 0 or ...
Given a two-dimensional integer matrix, sort each of the diagonals descending from left to right in ascending order.
You are given a string s consisting of lowercase alphabet characters, digits, and brackets"(" and ")". s encodes a longer string and is represented as concat...
Given a list of unique positive integers nums and a positive integer k, return the number of unique combinations that sum up to k. You may reuse numbers when...
You are given a two-dimensional list of strings matrix. Each element in matrix contains one of the following:
You are given a two-dimensional integer matrix and an integer target. Return the number of submatrices in matrix whose sum equals target.
You are given a singly linked list node and an integer k. Order the linked list so that all nodes whose values are less than k come first, all nodes whose va...
You are given two two-dimensional list of integers a and b and an integer duration. Each element in a contains an inclusive interval [start, end] meaning tha...