Showing 3 of 24 questions
Find two numbers in a given array that add up to a specific target value, and return their indices. Essentially, you need to efficiently locate the pair that satisfies the sum requirement.
#1. Two Sum
Given a string, find the most frequent character that appears earliest in the string. Return the length of the shortest substring that contains all occurrences of this character.
#2. Reverse Degree of a String
Find the number of elements in an array that appear with the highest frequency. Essentially, count how many times the most frequent number occurs.
#3. Count Elements With Maximum Frequency
Page 1 of 1 · 24 total