Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
ds = CreateDataStructure["DoublyLinkedList"];
|
||||
ds["Append", #] & /@ {1, 5, 7, 0, 3, 2};
|
||||
ds["Prepend", 9];
|
||||
ds["Append", 4];
|
||||
(* This is adding at the end and then swap to insert in to the middle: *)
|
||||
ds["Append", 14]; ds["SwapPart", Round[ds["Length"]/2], ds["Length"]];
|
||||
ds["Elements"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue