is sorting of an array required before implementing searching algorithm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

is sorting of an array required before implementing searching algorithm

11th Jan 2021, 7:36 AM
Prince Chowdhary
Prince Chowdhary - avatar
1 Answer
+ 5
Not required, but recommended, especially for binary search. Binary search operation works faster with a sorted container. As a future reference, please do not write your question in the tags. Use the tags to specify a relevant language, or specific subject e.g. 'search-algorithm'.
11th Jan 2021, 8:00 AM
Ipang