Swap Nodes in Pairs | leetcode 24 | Company tag : Amazon, Microsoft, Facebook | Python

preview_player
Показать описание

Please like the video, this really motivates us to make more such videos and helps us to grow. thecodingworld is a community which is formed to help fellow student and professionals looking to crack the “coding interviews”.

We love solving and sharing problems which are frequently asked in technical interviews and voted by community at various websites.

✅ For more and upcoming updates join our community

#leetcode #python
Рекомендации по теме
Комментарии
Автор

Thank you. Was stuck on this one for quite a bit.

akanimohekwere
Автор

Really the best ever.. swapping of nodes video..

AshishKumar-xgdm
Автор

Swap Nodes in Pairs - effective pointer manipulation explanation.

john_rambo_
Автор

best explanation i've found on youtube!

quirkyquester
Автор

Brilliant Explanation of logic.Please keep making such amazing content like this, Thank you.

iamnoob
Автор

great way of explaining logic. loved it!

UECDishaKhattri
Автор

Thanks for very clear explanation :) I like the way you explained with visual representation

sriharshasolasa
Автор

wasn't d1.next = None ?
if so why should we return it ?

vandit_quantum
Автор

subscribed! great explanation. All the best, keep creating more such videos :)

jyotirmoydey
Автор

explanation is awesome, Is there any way we can solve this question without d variable

chintamalli
Автор

can u explain how can u know that u shuld take dummy

fetkamausam
Автор

Can someone tell me why this is wrong?


def swapPairs(self, head: ListNode) -> ListNode:
x=ListNode(0)
y=x
while head and head.next:
y.next=head.next
(y.next).next=head
y=head
head=head.next.next
return x.next

jugh
Автор

sir your voice is not audible properly

SomnathDas-fgqc
visit shbcf.ru