test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
aa
var hasCycle = function (head) {
    while (head) {
        if (head.tag) return true
        head.tag = true
        head = head.next;
    }
    return false
};
ready
bb
var hasCycle = function (head) {
    let curr = head;
    while (curr) {
        if (curr.tag) return true
        curr.tag = true
        curr = curr.next;
    }
    return false
};
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.