Leetcode Problem 4 in Rust - Median of Two Sorted Arrays - 0ms, 2MB

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

its cool to stumble upon your video, even cooler that you have a k brew shirt lol. What are the odds that the guy that is teaching me rust is from k town? :)

AlexanderJohnLee
Автор

This is a nice solution but it doesn't satisfy the complexity requirement of O(log(m+n)). You're looking through half of the total elements so that's O(m+n).

vgm
join shbcf.ru