Binary Search algorithm explained in 60 seconds #KotlinShorts

preview_player
Показать описание
Binary Search is a very efficient way to find a value in a sorted array. It works by recursively subdiving the array into smaller subarrays, until the element is is found in the middle of the subarray or the exit condition is met.
- Time complexity: O(log n)
- Space complexity: O(n)

💻

#Programming #Kotlin #AlgorithmsIn60Seconds #DSA #recursive
Рекомендации по теме
Комментарии
Автор

It seems unreal. Right yesterday i was searching for binari search in kotlin.

Thanks mr

howl