57. File Naming
Task You are given an array of desired filenames in the order of their creation. Since two files cannot have equal names, the one which comes... »
Task You are given an array of desired filenames in the order of their creation. Since two files cannot have equal names, the one which comes... »
Task Given an integer product, find the smallest positive (i.e. greater than 0) integer the product of whose digits is equal to product. If there is... »
Task Given a rectangular matrix containing only digits, calculate the number of different 2 × 2 squares in it. Example For matrix = [[1, 2, 1],... »
Task CodeMaster has just returned from shopping. He scanned the check of the items he bought and gave the resulting string to Ratiorg to figure out... »
Task Check if the given string is a correct time representation of the 24-hour clock. Example For time = "13:58", the output should be validTime(time) =... »
Task Define a word as a sequence of consecutive English letters. Find the longest word from the given string. Example For text = "Ready, steady, go!",... »
Task Given some integer, find the maximal number you can obtain by deleting exactly one digit of the given number. Example For n = 152, the... »
Task Given a position of a knight on the standard chessboard, find the number of different moves the knight can perform. The knight can move to... »
Task Given a string, return its encoding defined as follows: First, the string is divided into the least possible number of disjoint substrings consisting of identical... »
Task Determine if the given character is a digit or not. Example For symbol = '0', the output should be isDigit(symbol) = true; For symbol =... »