Class SinglyLinkedListNode<T>

data-structure-typed

Author

Tyler Zeng

Copyright

Copyright (c) 2022 Tyler Zeng zrwusa@gmail.com

License

MIT License

Type Parameters

  • T = number

Hierarchy

  • SinglyLinkedListNode

Constructors

Properties

Accessors

Constructors

  • The constructor function initializes an instance of a class with a given value and sets the next property to null.

    Type Parameters

    • T = number

    Parameters

    • val: T

      The "val" parameter is of type T, which means it can be any data type. It represents the value that will be stored in the node of a linked list.

    Returns SinglyLinkedListNode<T>

Properties

_next: any
_val: any

Accessors

  • get next(): null | SinglyLinkedListNode<T>
  • Returns null | SinglyLinkedListNode<T>

  • set next(value): void
  • Parameters

    Returns void

  • get val(): T
  • Returns T

  • set val(value): void
  • Parameters

    • value: T

    Returns void

Generated using TypeDoc