Skip to content

mzLinkedList - a collection of TypeScript-based linked list helpers.

Notifications You must be signed in to change notification settings

mzusin/mz-linked-list

Repository files navigation

A collection of TypeScript-based linked list helpers 🚀

export interface ISinglyLinkedListNode {
    val: number;
    next: ISinglyLinkedListNode | null;
}

export const reverseSinglyLinkedList: (head: ISinglyLinkedListNode) => 
    ISinglyLinkedListNode | null;

export const getSinglyLinkedListMiddleNode: (head: ISinglyLinkedListNode | null) =>
    ISinglyLinkedListNode | null;

export const singlyLinkedListHasCycle: (head: ISinglyLinkedListNode | null) => boolean;

About

mzLinkedList - a collection of TypeScript-based linked list helpers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published