mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
Changed Styles as per guidelines
This commit is contained in:
@ -14,8 +14,10 @@ function main () {
|
||||
|
||||
Link for the Problem: https://leetcode.com/problems/rotate-list/
|
||||
*/
|
||||
const head = '', k = '' // Reference to both head and k is given in the problem. So please ignore this line
|
||||
let i = 0;
|
||||
// Reference to both head and k is given in the problem. So please ignore below two lines
|
||||
let head = ''
|
||||
let k = ''
|
||||
let i = 0
|
||||
let current = head
|
||||
while (current) {
|
||||
i++
|
||||
|
Reference in New Issue
Block a user