[Solved] How to search as a dictionary in C# [closed]

You could use Array.FindIndex and do this. var array = new string [] {“windows”,”dual sim”,”32 gb”,”Intel i5″}; string searchString = “android 32 gb”; var index = Array.FindIndex(array, x=> searchString.IndexOf(x) >=0); if you are looking for case insensitive search, use this. var index = Array.FindIndex(array, x=> searchString.IndexOf(x, StringComparison.CurrentCultureIgnoreCase) >=0); Check this Demo 8 solved How to … Read more

[Solved] Edit distance: Ignore start/end [closed]

The code to do this is simple in concept. It’s your idea of what you’d like to ignore that you can add on your own: #!perl use v5.22; use feature qw(signatures); no warnings qw(experimental::signatures); use Text::Levenshtein qw(distance); say edit( “four”, “foor” ); say edit( “four”, “noise fo or blur” ); sub edit ( $start, $target … Read more