Mr Shang

我是一个勤劳的码农,每天在技术的牧场辛勤劳作


导航栏
 » 首页
 » 分类浏览
 » 关于我
 » 我的Github
 » RSS订阅
Group 59

  1. get Month Name [CF]

    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 getMonthName(mo) = "invalid month".
  2. Find the number of even digits in the given integer [CF]

    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 should be numberOfEvenDigits(n) = 1.
  3. Find Substrings for line Encoding [CF]

    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 characters for example, "aabbbc" is divided into ["aa", "bbb", "c"] Next, each substring with length greater than one is replaced with a concatenation of its length and the repeating character for example, substring "bbb" is replaced by "3b" Finally, all the new strings are concatenated together in the same order and a new string is returned.

  4. CensorThis - Censor the words [CF]

    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 use offensive words and the editor wants to keep the magazine family friendly.

© Mr Shang - niceshang[#]outlook.com - Powered by Jekyll.