Skip to content
Snippets Groups Projects
Commit 761ca62f authored by Fabian Vu's avatar Fabian Vu
Browse files

commit

Update information
parent d8512968
No related branches found
No related tags found
No related merge requests found
Pipeline #146414 passed
/*
Minor parts of implementation bases on https://kenjj.medium.com/linked-list-with-typescript-ea8c88276e2e
Implementation is strongly modified to imitate behavior of Java linked list, particularly a double-linked list
which can be used as a stack or queue, to access the first and last element (for DFS, BFS, Mixed BFS/DFS) for model checking more efficiently.
The LinkedList implementation is designed for the model checking code generation specifically, thus only contains functions for accessing and modifying the first/last element, and accessing the length efficiently.
*/
export class LinkedListNode { export class LinkedListNode {
constructor(value) { constructor(value) {
this.value = value; this.value = value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment