Home Reference Source
import {LinkedList} from 'dsa-gfg/src/linkedlist/linked-list.ts'
public class | source

LinkedList

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

head: *

public

tail: *

Method Summary

Public Methods
public

add(a: number)

public
public

getNth()

public
public

values(): *

Public Constructors

public constructor() source

Public Members

public head: * source

public tail: * source

Public Methods

public add(a: number) source

Params:

NameTypeAttributeDescription
a number

public count(): number source

Return:

number

public getNth() source

public insertAtEnd(a: number) source

Params:

NameTypeAttributeDescription
a number

public values(): * source

Return:

*