Showing 3 of 29 questions
You're given a number of initially infected people and a length of days. Calculate the total number of distinct ways the infection can spread each day, given some constraints on who can infect whom.
#1. Count the Number of Infection Sequences
Find the contiguous subarray within a given array of numbers which has the largest sum. Return the sum of this subarray.
#2. Maximum Subarray
Find all numbers of a given length where the absolute difference between every two consecutive digits is equal to a specified value. Return these numbers as an array.
#3. Numbers With Same Consecutive Differences
Page 1 of 1 · 29 total