checkIfCircularList() {
        var circular = true;
        if(this.size() > 0){
        if (this.getNode(this.size() - 1).getNext() === null)
            circular = false;
        this.circularList = circular;
        }
        else
            return false;
    }
/**
     * Check if the linked list is circular or not
     */
Check if the linked list is circular or not
Check if the linked list is circular or not
checkIfCircularList() {
        var circular = true;
        if(this.size() > 0){
        if (this.getNode(this.size() - 1).getNext() === null)
            circular = false;
        this.circularList = circular;
        }
        else
            return false;
    }
checkIfCircularList ( ) { var circular = true ; if ( this . size ( ) > 0 ) { if ( this . getNode ( this . size ( ) - 1 ) . getNext ( ) === null ) circular = false ; this . circularList = circular ; } else return false ; }
Check if the linked list is circular or not
Check if the linked list is circular or not