As you may have heard, sorting is generally slower than searching linearly. Keeping this in mind, what method would be correct and more efficient in order to search for the value in the array ?
Searching problem
Sort or not
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.