We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e704e3e commit 8df62a4Copy full SHA for 8df62a4
linked-list-cycle/nhistory.js
@@ -22,3 +22,6 @@ var hasCycle = function (head) {
22
}
23
return false;
24
};
25
+
26
+// TC: O(n)
27
+// SC: O(1)
0 commit comments