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 →

Looking into some programming task is sometimes challenging. You may think that the answer is quite simple, but actually someone has decided to make you sweat. In this task  you should read one line from the console and print the sum …

C# – Taking only numbers from array and working with them – (The Horror) Read more →