Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

linear serach in java

Step 1: Traverse the array
Step 2: Match the key element with array element
Step 3: If key element is found, return the index position of the array element
Step 4: If key element is not found, return -1
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #linear #serach #java
ADD COMMENT
Topic
Name
7+5 =