@leandrohirt.oficial: Como o Python acha 1 pinguim entre mais de 1 milhão com só 20 chutes? A busca binária pergunta sempre para o pinguim do meio e descarta metade da fila a cada resposta, até sobrar o certo. Funciona com qualquer lista ordenada: números, nomes ou IDs. Aprenda a pensar como o Python resolve problemas assim com o Curso de Python Completo, no link da bio. #python #programação #algoritmos #buscabinaria #logicadeprogramacao
why can't you just search in the whole thing?? I mean you even check if it's in the specific chunk or not
2026-10-09 12:08:18
0
ωαєѵ :
interessante, muitas possibilidades
2026-10-06 16:58:22
59
макулатура :
binary search work only in structure data. also data must has iterator or can transform in integer
2026-10-08 12:58:40
9
5 :
Yes of course it has to be sorted. But if you know you are gonna do a search multiple times in the same list, you should sort it first (and only once) then you search it multiple times at O(log n) time complexity
2026-10-09 09:39:30
3
🇰🇭 ស្មោះប៉ុណ្នឹងមិនល្មម🇺🇸 :
Leave the array unsorted, just pick a random one look at it and put it back. Wouldn’t that be faster, then have to sort them first?
2026-10-09 06:14:41
1
циган :
dichotome method
2026-10-08 12:31:32
3
Мистер Исключительный 🧛 :
Докс по математически
2026-10-09 09:38:45
4
Arison_q :
фором надо было
2026-10-11 09:27:20
1
Say :
big o função logaritma ne ?
2026-10-06 19:28:01
7
Morkovkaa 原明 :
Больше 20, кстати, быть не может.
Для тех, кто, возможно, не знает.
2026-10-11 15:14:18
5
Johnny Boy :
busca binaria é o algoritmo, qlqr linguagem tem como implementar ele
2026-10-06 23:11:14
1
Giantara Ihsan Food :
owalah menggunakan bahasa python toh
2026-10-10 05:25:28
0
Voevvxiwnz :
est-ce que cela peut être utilisé comme trouver une personne?
2026-10-10 07:21:29
0
muha_cc :
Linux
2026-10-13 07:42:19
0
acan :
if not sorted?
2026-10-13 03:01:16
0
Канал переносится :
Помогите добить 50 подписчиков
2026-10-12 12:12:58
0
mishasklyar :
pinguin
2026-10-10 15:48:17
0
Dragon :
2026-10-06 17:28:50
0
To see more videos from user @leandrohirt.oficial, please go to the Tikwm
homepage.