Showing 3 of 5 questions
Given an array of integers, determine if you can rearrange or transform its elements so that all numbers share the same parity of being either all even or all odd.
#1. Construct Uniform Parity Array I
Given an array of integers, determine whether you can rearrange or transform its elements so that all numbers share the same parity.
#2. Construct Uniform Parity Array II
Given a string of digits, count the number of substrings that are divisible by a given number. Each substring should be interpreted as an integer.
#3. Number of Divisible Substrings
Page 1 of 1 · 5 total