Write a code for finding a certain element in an unsorted array assuming element definitely exists. How can we improve the efficiency?
Anonymous
O(n) ia always smaller than O(nlogn)+O(logn). hence linear search will always be efficient
Check out your Company Bowl for anonymous work chats.