I have to write an algorithm for getting a matching string from list of saves string
after comparing it with the given string.
Book ABC XYZ
Note Book YYYe`
If user gives Book, then the algorithm can return Book ABC or Book ABC XYZ or Note Book YYY.
if the user gives Book ABC, the the algorithm can return Book ABC or Note Book.
if the user gives Book ABC XYZ, the the algorithm should return only Book ABC XYZ.
and so on.
Hope I am able to comunicate.
Have anyone written anything like this earlier or is c# provides any such functionalities?