10. commonCharacterCount
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 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... »
Task Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one... »
Task Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size. Since he likes to... »
Task Below we will define an n-interesting polygon. Your task is to find the area of a polygon for a given n. A 1-interesting polygon is... »
Task Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. Example For inputArray = [3,... »
Task Given the string, check if it is a palindrome. Example For inputString = "aabaa", the output should be checkPalindrome(inputString) = true; For inputString = "abac",... »
Task Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the... »
Task Write a function that returns the sum of two numbers. Example For param1 = 1 and param2 = 2, the output should be add(param1, param2)... »