20. arrayMaximalAdjacentDifference
Task Given an array of integers, find the maximal absolute difference between any two of its adjacent elements. Example For inputArray = [2, 4, 1, 0],... »
Task Given an array of integers, find the maximal absolute difference between any two of its adjacent elements. Example For inputArray = [2, 4, 1, 0],... »
Task Call two arms equally strong if the heaviest weights they each are able to lift are equal. Call two people equally strong if their strongest... »
Task Given a string, find out if its characters can be rearranged to form a palindrome. Example For inputString = "aabb", the output should be palindromeRearranging(inputString)... »
Task You are given an array of integers. On each move you are allowed to increase exactly one of its element by one. Find the minimal... »
Task Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays.... »
Task Given a rectangular matrix of characters, add a border of asterisks(*) to it. Example For picture = ["abc", "ded"] the output should be addBorder(picture) =... »
Task Several people are standing in a row and need to be divided into two teams. The first person goes into team 1, the second goes... »
Task Write a function that reverses characters in (possibly nested) parentheses in the input string. Input strings will always be well-formed with matching ()s. Example For... »
Task Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the... »
Task Ticket numbers usually consist of an even number of digits. A ticket number is considered lucky if the sum of the first half of the... »