is sorting of an array required before implementing searching algorithm | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

is sorting of an array required before implementing searching algorithm

11th Jan 2021, 7:36 AM
Prince Chowdhary
Prince Chowdhary - avatar
1 Réponse
+ 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