commit 8622b6f7ec0f1cccb93968b920d12221bea8afa8
parent 984b046289e42a44c930f59d2ec755239b08a440
Author: AndrewLockVI <andrewlaack1@gmail.com>
Date: Tue, 25 Apr 2023 11:46:57 -0500
Updated runtime and memory stats
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/swap-nodes/swap-nodes.js b/swap-nodes/swap-nodes.js
@@ -2,7 +2,8 @@
//[x1 , y1 , x2 , y3] -> [y1 , x1 , y2, x2]
//This solution has a time compexity of O(n) where n
//is the length of the linked list.
-
+//Time: 54ms Beats: 82.81%
+//Memory: 42.2MB Beats: 40.88%
/**
* Definition for singly-linked list.