Community-driven challenges - No solutions shown!
These are interesting problems with no solutions shown. Submit your own solutions or problems to contribute!
16 challenges available
You are given a string s and two integers x and y. You can perform two types of operations any number of times....
Given a string s, return the number of distinct non-empty subsequences of s. Since the answer may be very large, return ...
Given an integer array nums, return the number of longest increasing subsequences....
Given an array of strings words (without duplicates), return all the concatenated words in the given list of words....
There are n houses and k colors. You need to paint all the houses such that no two adjacent houses have the same color....
Alice and Bob take turns playing a game, with Alice starting first. There are n stones in a pile, and the goal of the ga...
You are given a 0-indexed m x n integer matrix grid consisting of positive integers. You can move in four directions: up...
The alternating sum of a sequence is defined as the sum of elements at even indices minus the sum of elements at odd ind...
Given a circular integer array nums of length n, return the maximum sum of a non-empty subarray of nums....
Given a string s, return the number of distinct subsequences of s where all the characters of the subsequence are unique...
There is a group of n members, and a list of some crimes they could commit. The ith crime generates a profit[i] and requ...
Given an m x n integers matrix, return the length of the longest increasing path in matrix. From each cell, you can eith...
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct ...
In a country popular for train travels, you have planned some train traveling one year in advance. The days of the year ...
You are given an integer array prices where prices[i] is the price of a given stock on the ith day, and an integer k....
Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings ...