@hello.interview: Solving linked list questions efficiently with two pointers! #leetcode #coding #swe

Hello Interview
Hello Interview
Open In TikTok:
Region: US
Wednesday 04 October 2023 23:24:23 GMT
29885
1234
14
32

Music

Download

Comments

annieherfort
Annie🩵🩷🤍 :
What's a linked list?
2023-10-06 22:03:57
2
not_my_segfault
Ardicoo :
isn't the time complexity the same?? 🤔
2023-10-06 23:50:52
0
matthewdude2345
Don’t_drink_the_tapwater :
For the middle node one what happens if it is an even number, how does the program handle this?
2023-10-10 15:52:54
0
usernameusernameuserna_
...... :
what even is the point of this, its the same number of pointer moves
2023-10-14 17:33:50
1
kalinfe
Kalinfe :
I’d argue if the link list doesn’t keep an O(1) reference to the length of the list, it’s created poorly. With that there’s no need to two pointers
2023-10-15 20:22:20
1
turagnikandam
Turag :
What if the cycle is not from last node to the middle node but to the first node? I couldn’t determine if it had one then
2023-11-04 08:35:35
0
techdatascience
techdatascience :
Bravo
2023-10-06 16:58:27
1
vseth2020
user4658991618013 :
😂😂😂
2025-06-11 08:48:16
0
lucsoft_
lucsoft :
Never use a linked list
2023-10-11 16:22:18
1
quellolagrave
QuelloLà :
simply put the length insife the linked list
2023-10-09 11:21:29
0
To see more videos from user @hello.interview, please go to the Tikwm homepage.

Other Videos


About