Assignment 01
Assignment 01
md 2023-11-16
3. Write a program to print no of comparisions done to search a key in i. linear search ii. binary serach
4. Create array of employees and search employee by i. empid ii. name iii. salary
6. Implement linear search algorithm to find the nth occurence of the given element. If nth occurrence is
not found, return -1.
8. to find rank of an element in a stream of integers. rank: rank of a given integer "x", in stream is "total
no. of ele's less than or equal to x (including x).
1/1