Showing 3 of 5 questions
Given an array representing different types of candies, you must distribute them equally between two people. Return the maximum number of unique candy types one person can receive.
#1. Distribute Candies
Given four digits, find the largest valid 24-hour time that can be formed using them. If no valid time can be formed, return an empty string.
#2. Largest Time for Given Digits
Find the length of the longest subsequence in an array where the difference between the largest and smallest element is exactly 1. The subsequence doesn't need to be contiguous.
#3. Longest Harmonious Subsequence
Page 1 of 1 · 5 total