50. chessKnight
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 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 =... »
Task A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. The standard (IEEE... »
Task Elections are in progress! Given an array of the numbers of votes given to each of the candidates so far, and an integer k equal... »
Task Given a string, find the shortest possible string which can be achieved by adding characters to the end of initial string to make it a... »
Task An email address such as "John.Smith@example.com" is made up of a local part ("John.Smith"), an "@" symbol, then a domain part ("example.com"). The domain name... »
Task A string is said to be beautiful if each letter in the string appears at most as many times as the previous letter in the... »
Task Given the positions of a white bishop and a black pawn on the standard chess board, determine whether the bishop can capture the pawn in... »
Task Let’s define digit degree of some positive integer as the number of times we need to replace this number with the sum of its digits... »