deno.land / x / masx200_leetcode_test@10.6.5 / design-linked-list / DoublyLinkedList.ts

DoublyLinkedList.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// deno-lint-ignore no-explicit-anyexport interface DoublyLinkedList<T = any> { val?: T; next?: DoublyLinkedList<T> | null; prev?: DoublyLinkedList<T> | null;}// deno-lint-ignore no-explicit-anyexport function DoublyLinkedList<T = any>( val?: T, next?: DoublyLinkedList<T>, prev?: DoublyLinkedList<T>,): DoublyLinkedList<T> { return { val, prev, next };}
masx200_leetcode_test

Version Info

Tagged at
a year ago