17. arrayChange
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 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... »
Task Given two strings, find the number of common characters between them. Example For s1 = "aabcc" and s2 = "adcaa", the output should be commonCharacterCount(s1,... »
Task Given an array of strings, return another array containing all of its longest strings. Example For inputArray = ["aba", "aa", "ad", "vcd", "aba"], the output... »
Task After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them... »