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 7490aee commit 1f2cbacCopy full SHA for 1f2cbac
src/linked-list/loop-detection.js
@@ -39,7 +39,7 @@ function loopDetection() {
39
* O(n) / O(n) - hashmap of addresses
40
* @returns {*}
41
*/
42
-function hasLoop() {
+function loopDetection2() {
43
var map = new Map();
44
45
for(let i = this.head; i; i = i.next) {
0 commit comments