ankitapuri / DSA-guide

Trying to cover important DSA
MIT License
49 stars 114 forks source link

linked list- swap nodes in pair #286

Open pri1311 opened 3 years ago

pri1311 commented 3 years ago

Is your feature request related to a problem? Please describe. https://leetcode.com/problems/swap-nodes-in-pairs/ Given a linked list, swap every two adjacent nodes and return its head. Difficulty: medium

Describe the solution you'd like

Describe alternatives you've considered

Additional context

pri1311 commented 3 years ago

Please assign this to me under crosswoc for python and C++

abhinav5481 commented 3 years ago

Hi @ankitapuri I would like to solve it in Java or Python. Please assign it to me in any one of the languages.

pri1311 commented 3 years ago

Will do it in C++

ankitapuri commented 3 years ago

Hi @ankitapuri I would like to solve it in Java or Python. Please assign it to me in any one of the languages.

Do in python

ankitapuri commented 3 years ago

Will do it in C++

I can assign u one issue at a time .