January 2012
Intermediate to advanced
396 pages
8h 16m
English
Follow the given step:
Program.cs file:/// <summary> /// A word can be formed using a set of characters, if one of /// their histogram is a /// subset of the other in terms that they share some of the /// characters and /// occurrence of characters is not more than in the other one. /// </summary> /// <param name="firstOne">The first character histogram</param> /// <param name="secondOne">The second histogram</param> /// <returns></returns> private static bool CanIFormAWord(SortedList<char, int> firstOne, SortedList<char, int> secondOne) { int count = 0; bool status = false; foreach (char c in firstOne.Keys) { //In order to be a subset all the characters //in ...Read now
Unlock full access