Map the given integer to a month. Example: For mo = 1 , the output should be getMonthName(mo) = "Jan" , For mo = 0 , the output should be…
Codefights 6 posts
2016
Find the number of even digits in the given integer. Example For n = 1010 , the output should be numberOfEvenDigits(n) = 2 . For n = 123 , the output…
Given a string, return its encoding defined as follows: First, the string is divided into the least possible number of disjoint substrings consisting of…
Author Question: Argaen Code Fights Weekly has gained popularity in the past months and is receiving lots of fan letters. Unfortunately, some of the readers…
Author Question: Lepluto In Numberland, every integer living there has a soulmate which is the exact same number. To prevent family disasters, the…
Author Question: Giappi I have an integer number, which I want to reverse by following steps: Convert the number into binary string. Reverse binary…