Today I had to write a solution of the following problem – imagine you have two lists like this: var liPhoneBook = new List<tuple<int,string>>(); liPhoneBook.Add(Tuple.Create(100, “Pesho”)); liPhoneBook.Add(Tuple.Create(200, “Gosho”)); liPhoneBook.Add(Tuple.Create(300, “Atanas”)); liPhoneBook.Add(Tuple.Create(400, “Az”)); liPhoneBook.Add(Tuple.Create(500, “Ivan”)); liPhoneBook.Add(Tuple.Create(600, “Ivan Petrov”)); liPhoneBook.Add(Tuple.Create(900, “Vitosh”)); List …
C# Algorithms – Phone Book Implementation – List of int and string with a tuple Read more »