37. arrayMaxConsecutiveSum
Task Given array of integers, find the maximal possible sum of some of its k consecutive elements. Example For inputArray = [2, 3, 5, 1, 6]... »
Task Given array of integers, find the maximal possible sum of some of its k consecutive elements. Example For inputArray = [2, 3, 5, 1, 6]... »
Task Given a string, find the number of different characters in it. Example For s = "cabca", the output should be differentSymbolsNaive(s) = 3. There are... »
Task Find the leftmost digit that occurs in a given string. Example For inputString = "var_1__Int", the output should be firstDigit(inputString) = '1'; For inputString =... »
Task Given array of integers, remove each kth element from it. Example For inputArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and... »
Task Given an array of equal-length strings, you’d like to know if it’s possible to rearrange the order of the elements in such a way that... »
Task Given a sorted array of integers a, your task is to determine which element of a is closest to all other values of a. In... »
Task You have deposited a specific amount of money into your bank account. Each year your balance increases at the same growth rate. With the assumption... »
Task Consider integer numbers from 0 to n - 1 written down along the circle in such a way that the distance between any two neighboring... »
Task Given two cells on the standard chess board, determine whether they have the same color or not. Example For cell1 = "A1" and cell2 =... »
Task Given a string, your task is to replace each of its characters by the next one in the English alphabet; i.e. replace a with b,... »