mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +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/
|
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
|
// Reference to both head and k is given in the problem. So please ignore below two lines
|
||||||
let i = 0;
|
let head = ''
|
||||||
|
let k = ''
|
||||||
|
let i = 0
|
||||||
let current = head
|
let current = head
|
||||||
while (current) {
|
while (current) {
|
||||||
i++
|
i++
|
||||||
|
Reference in New Issue
Block a user