We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da21e7d commit 35cade3Copy full SHA for 35cade3
Data-Structures/Linked-List/RotateListRight.js
@@ -14,8 +14,10 @@ function main () {
14
15
Link for the Problem: https://leetcode.com/problems/rotate-list/
16
*/
17
- const head = '', k = '' // Reference to both head and k is given in the problem. So please ignore this line
18
- let i = 0;
+ // Reference to both head and k is given in the problem. So please ignore below two lines
+ let head = ''
19
+ let k = ''
20
+ let i = 0
21
let current = head
22
while (current) {
23
i++
0 commit comments