Ad
  • Default User Avatar

    haha could you do it even shorter ? [/ironie off] . Just kidding. Very nice solution!

  • Default User Avatar

    you could replace your GetNumber() Function with one single Line (Regex).

    var tmpI = Int32.Parse(Regex.Match(tmpStr[i], @"\d+").Value);

    tmpI would then have the number you are looking for. tmpStr[i] would be the word you are looking at.

  • Default User Avatar

    tricky one. Especially the testcase with the expected output of 12933. A good example for "learn and understand the fundamentals".