Showing 3 of 32 questions
You are given an array of numbers and a pattern array. Your task is to count how many subarrays within the number array match the specified pattern.
#1. Number of Subarrays That Match a Pattern I
Given a string, determine how many times the case (upper vs. lower) of consecutive letters changes. Count the number of case changes in the string.
#2. Number of Changing Keys
Given a list of strings, count the number of pairs where one string is both a prefix and a suffix of the other.
#3. Count Prefix and Suffix Pairs I
Page 1 of 1 · 32 total