DSC-Banasthali-Vidyapith / Code-Crossroad

This project contains the carefully compiled Data Structures & Algorithm questions asked by the companies that visit Banasthali Vidyapith on-campus.
MIT License
55 stars 78 forks source link

Rotate Linked List #84

Closed sparshiigupta closed 3 years ago

sparshiigupta commented 3 years ago

Aim : Given the head of a linked list, rotate the linked list to the right by k places.

Input: head = [1,2,3,4,5], k = 2 Output: [4,5,1,2,3]

Details : I would like to provide a C++ solution to this problem. Please assign this issue to me @Vanshikagarg17

Vanshikagarg17 commented 3 years ago

You can start working on this issue. All the best!