#Run the linearSearch.js as
node fileName inputArray key
example:
node linearSearch.js [1,2,3,4] 3
Output:
- Success -
Key found at index: index - Failure -
Key Not Found
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
#Run the linearSearch.js as
node fileName inputArray key
example:
node linearSearch.js [1,2,3,4] 3
Output:
Key found at index: indexKey Not Found