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
You are given an array of integers and a pattern. Find the number of subarrays in the array that match the given pattern of increasing, decreasing, or equal-valued elements.
#3. Number of Subarrays That Match a Pattern II