Showing 3 of 7 questions
You are given two integers, n and k, and you need to count how many arrays of length n exist where the maximum element can be found using exactly k comparisons. The array elements must be integers between 1 and m (inclusive).
#1. Build Array Where You Can Find The Maximum Exactly K Comparisons
You are given two strings s1 and s2, and an evil string. Find the number of strings of a given length that are lexicographically greater than or equal to s1, and less than or equal to s2, and do not contain evil as a substring.
#2. Find All Good Strings
Determine the number of unique substrings that can be formed from a given string. Count each distinct substring only once.
#3. Number of Distinct Substrings in a String
Page 1 of 1 · 7 total