@algo.andre: The difference between arrays and linked lists #coding #math

Algo Andre
Algo Andre
Open In TikTok:
Region: CA
Thursday 09 July 2026 21:26:46 GMT
98837
7000
76
217

Music

Download

Comments

juustukeefir
Kaarel🇪🇪 :
HASH MAP! USE A HASH MAP
2026-07-10 21:37:17
93
tikitakaphonkgang
tikitakaphonkgang :
There’s a universe Bogo sort just always works lol
2026-07-10 20:44:11
196
armand4847
Armand :
This isn’t even a question. Fixed length? Array. Variable length? List. End of story
2026-07-10 22:14:37
17
hastingsn
Galakan :
or... use a hash
2026-07-10 13:18:46
1
itsduckietime
ItsDuckieTime :
This 47 second video summed up a 2 hour lecture
2026-07-10 19:11:55
12
kingchocomilk
Jose :
Forget linked list takes two of your little squares per node
2026-07-11 00:14:18
3
spark73530
Jose Luis T. D. :
why not just add an index to the list itself? like grouping
2026-07-10 13:31:29
4
halosecrets0032
Alexander Sánchez Martínez :
what could be a use case for a linked list in which an array is not the better option?
2026-07-10 06:49:14
0
duckducklightning
duckducklightning :
you can use std::hive container to solve the deletion issue
2026-07-10 21:30:16
1
ricopin42
Rei Ayanami :
Dance arrays often are still faster even when inserting a lot of new items because of caching behavior
2026-07-10 15:25:31
15
hanosa57
hanosa :
in theory, but in practice CPU are better with arrays
2026-07-09 21:31:57
21
nickhuynh54
Nick Huynh :
AI will just select the best container... no thinking required nowadays
2026-08-20 23:01:30
0
biomedicljz
Leonardo JZ :
Just as curiosity, how did you make this video? the animations are just awesome.
2026-07-12 05:12:31
2
amelidee
Amelia 🩷 :
yeah but also cache locality is so important and copying memory is so fast that arrays are still faster in the vast majority of real cases, the only time to use a linked list is if you've benchmarked and proved it's faster, because it's probably not
2026-07-10 12:25:20
4
witooooo0
zzzzzzzzzzzzzz :
so each method has what the other one doesn't there is no 3rd one that has the efficiency of both (deleting/navigating)?
2026-07-18 01:42:29
1
v1ol3tveekay
v1ol3tVeekay :
Static vs dynamic... array vs list... if the data changes too much on diverses cases... dynamic, if you store a defined amount of data... example: a class parameters... array... in the most cases, there's not matter, really, to functional escenarios... if you need to optimize, because slow languaje (Python) on a loop... or a dataset too large... or slow size of memory, etc.. you surely need to decide... or even decide to another data structure or even a languaje...
2026-08-05 04:59:57
0
henrym.lee
Henry Lee メ𝟶 :
Okay I was already studying arrays and linked list but this explanation is clear and efficient thank you for explaining this
2026-08-01 14:54:14
2
luca.favaa
luca_fava :
to help being faster you can add another pointer that goes the other way, from the bottom to the head
2026-07-10 08:30:25
2
the4a617a7a68616e6473
Autsuting :
this is how Ireland's postal code works vs everyone else's postal code
2026-08-08 13:21:02
0
gurgodargen
Gurgodargen :
I don't think I have ever actually needed to use any structure that wasn't (or couldn't be, efficiently) a flat array under the hood. Like the chances you have a high enough volume of insertions and deletions AND you need to keep it sorted (so you can't swap and remove from the end) are extremely small, and the chances that when you ARE in that situation that you still need cache friendly structures are high.
2026-09-02 05:16:35
0
tucksporis
tucks poris :
homestuck
2026-07-22 07:29:09
0
pixelaze
шыз обыкновенный :
linked lists are overrated, 99% of the time you need arrays
2026-07-19 09:13:57
0
witooooo0
zzzzzzzzzzzzzz :
ohhhh this makes much sense when its visuel like this
2026-07-18 01:40:07
0
risebyy
riseby :
2026-07-29 17:24:57
0
cutebuttsowhat
VR GAMEDEV :
Sometimes I think about how crazy it is all these structures exist in the ram which is just like a big array 🙃
2026-07-10 23:16:31
0
To see more videos from user @algo.andre, please go to the Tikwm homepage.

Other Videos


About