Showing 3 of 13 questions
Find the length of the longest subarray where no element appears more than K times. In essence, you're looking for the longest segment that satisfies a frequency constraint.
#1. Length of Longest Subarray With at Most K Frequency
Find the length of the longest subsequence of a string where the absolute difference between the ASCII values of adjacent characters is no more than a given threshold. Consider only subsequences that satisfy the 'ideal' condition.
#2. Longest Ideal Subsequence
Given an undirected tree and a set of restricted nodes, find the maximum number of unique nodes you can reach from the starting node without passing through any restricted ones.
#3. Reachable Nodes With Restrictions
Page 1 of 1 · 13 total