News for hackers. Stuff that matters.
Re:Things I Learned from a Job Hunt for a Senior Engineering... by logfromblammo on Tuesday April 24, 2018 @02:59PM (#16915554)
In C#, the string object has some convenience in it:

  return inputString.Count( "eaoiuAIEOU".Contains );
Or if you want to solve two problems:

  static Regex VowelMatcher = new Regex( "[aeiou]",
    RegexOptions.Compiled | RegexOptions.IgnoreCase );
  ...
  return VowelMatcher.Matches( inputString ).Count;
And if you want to be clever and snarky:

  return 2; // number of vowels in "a string"
Re:Things I Learned from a Job Hunt for a Senior Engineering... by taco_emoji on Tuesday April 24, 2018 @04:12PM (#16916110)
The Count and Contains methods are not on string, they're both extension methods on IEnumerable<T>, which string gets for free by implementing IEnumerable<char>.