Loop Array Hash Map Counting Prefix Sum Learner Implement the majorityElementValue method that returns the value that appears more than half of the time. Solved
Loop Array Hash Map Counting Prefix Sum Intermediate Implement the maximumSubarraySum method that returns the largest sum of any contiguous subarray. Solved
Loop Array Hash Map Counting Prefix Sum Learner Implement the findTwoSumIndices method that returns indices of two numbers whose sum equals the target. Solved
Array Counting Sorting Two Pointers Intermediate Implement the sortColorsThreeValues method that sorts an array containing only three possible values. Solved
Array Counting Binary Search Intermediate Implement the searchRangeOfTarget method that returns the first and last position of a target in a sorted array. Solved
Array Hash Map Counting Sorting Intermediate Implement the sortByFrequencyAscending method that sorts values by increasing frequency while resolving ties consistently. Solved
Array Counting Binary Search Intermediate Implement the countTargetInSortedArray method that counts how many times the target appears in a sorted array. Solved
String Manipulation String Counting Sliding Window Intermediate Implement the longestSubstringWithoutRepeat method that returns the length of the longest substring that has no repeated characters. Solved
String Manipulation String Counting Character Learner Implement the removeDuplicateCharacters method that returns the text after keeping only the first occurrence of each character. Solved
String Manipulation String Counting Character Intermediate Implement the areTextsAnagram method that checks whether two texts contain the same characters with the same frequencies. Solved
String Manipulation String Counting Character Intermediate Implement the firstNonRepeatingCharacter method that returns the first character in the text that appears only once. Solved
Array Hash Map Counting Learner Implement the findFirstRepeatedValue method that returns the first value that appears more than once while scanning the array. Solved
Array Hash Map Counting Learner Implement the countDistinctValues method that counts how many different values are present in the array. Solved
String Counting Intermediate Implement the method compressRuns that compresses consecutive repeated characters. Solved
Array Counting Greedy Intermediate Implement the method majorityElement that returns the value appearing more than half the time. Solved
Array Hash Map Counting Intermediate Implement the method countPairsWithSum that counts index pairs whose values add up to a target. Solved
Loop Array Counting Beginner Implement the method countEvenNumbers that returns how many even numbers are in an array. Solved
Loop String Counting Learner Implement the method countConsonants that returns the number of consonants in a string. Solved
String Counting Beginner Implement the method countWords that returns the number of words in a string. Solved