Question: Write down the method in C# to perform linear search for a decimal value; and then, test it: return the index/position if found, or -1
Write down the method in C# to perform linear search for a decimal value; and then, test it: return the index/position if found, or -1 if not found. Method Signature: int LinearSearch(decimal[] array, decimal value)
need it in decimal only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
