@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

Leandro Hirt | Academify
Leandro Hirt | Academify
Open In TikTok:
Region: BR
Tuesday 06 October 2026 16:15:07 GMT
412278
29120
72
2118

Music

Download

Comments

shrimpo.exe_79
coleawesome :
what a binary search im just a babeh
2026-10-10 06:46:38
5
trehammer59
Francis :
Assumes already sorted
2026-10-07 03:07:11
972
angelicautumngach
DecoraOctopus :
language 0% understanding 100%
2026-10-06 19:29:47
709
fine_riso
fineriso :
the only problem, it has to be sorted
2026-10-07 18:31:44
478
i_love_the_kites
I_love_the_kites :
return list(range(1, 2**20))[x]
2026-10-06 20:56:05
32
liberal4edit
kutayertug :
Binary search only works in sorted data
2026-10-09 14:32:14
13
annmqwz
Кори спит :
когда пингвины лохами для тебя стали?
2026-10-07 06:53:43
92
glitch_bss5
Roman :
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
waev_ofc
ωαєѵ :
interessante, muitas possibilidades
2026-10-06 16:58:22
59
ne_obyazan44
макулатура :
binary search work only in structure data. also data must has iterator or can transform in integer
2026-10-08 12:58:40
9
1234aaaa554
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
sunnyday.today.always
🇰🇭 ស្មោះប៉ុណ្នឹងមិនល្មម🇺🇸 :
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
dolboeb_koncheniy
циган :
dichotome method
2026-10-08 12:31:32
3
mistericklyhitelny
Мистер Исключительный 🧛 :
Докс по математически
2026-10-09 09:38:45
4
arison_q
Arison_q :
фором надо было
2026-10-11 09:27:20
1
cr7_muito_melhor
Say :
big o função logaritma ne ?
2026-10-06 19:28:01
7
morkovkaa155_
Morkovkaa 原明 :
Больше 20, кстати, быть не может. Для тех, кто, возможно, не знает.
2026-10-11 15:14:18
5
johnny_boy472
Johnny Boy :
busca binaria é o algoritmo, qlqr linguagem tem como implementar ele
2026-10-06 23:11:14
1
giantaraihsanfood
Giantara Ihsan Food :
owalah menggunakan bahasa python toh
2026-10-10 05:25:28
0
i221326
Voevvxiwnz :
est-ce que cela peut être utilisé comme trouver une personne?
2026-10-10 07:21:29
0
muha_cc42
muha_cc :
Linux
2026-10-13 07:42:19
0
shinchaans
acan :
if not sorted?
2026-10-13 03:01:16
0
noomi.nooble
Канал переносится :
Помогите добить 50 подписчиков
2026-10-12 12:12:58
0
mishasklyar
mishasklyar :
pinguin
2026-10-10 15:48:17
0
dojoplkwrna
Dragon :
2026-10-06 17:28:50
0
To see more videos from user @leandrohirt.oficial, please go to the Tikwm homepage.

Other Videos


About