From 97475c8ea66d856fbcee29ab33400944391a90ce Mon Sep 17 00:00:00 2001
From: Piyush Mohite <75901900+git-pi-e@users.noreply.github.com>
Date: Mon, 19 Aug 2024 15:43:16 +0530
Subject: [PATCH] =?UTF-8?q?Update=20=E2=9C=85=20=20Pattern=2006:=20In-plac?=
=?UTF-8?q?e=20Reversal=20of=20a=20LinkedList.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fix syntax highlighting
---
...\234\205 Pattern 06: In-place Reversal of a LinkedList.md" | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git "a/\342\234\205 Pattern 06: In-place Reversal of a LinkedList.md" "b/\342\234\205 Pattern 06: In-place Reversal of a LinkedList.md"
index 9410030..46e7c7a 100644
--- "a/\342\234\205 Pattern 06: In-place Reversal of a LinkedList.md"
+++ "b/\342\234\205 Pattern 06: In-place Reversal of a LinkedList.md"
@@ -277,7 +277,8 @@ console.log(`Nodes of reversed LinkedList are: ${reverseEveryKElements(head, 3).
The problem follows the in-place Reversal of a LinkedList pattern and is quite similar to Reverse every K-element Sub-list. The only difference is that we have to skip `K` alternating elements. We can follow a similar approach, and in each iteration after reversing `K` elements, we will skip the next `K` elements.
-````class Node {
+````js
+class Node {
constructor(value, next = null) {
this.value = value
this.next = next