Doubly-linked list/AutoHotkey: Difference between revisions

m
Fixed syntax highlighting.
(discussion link)
m (Fixed syntax highlighting.)
 
(One intermediate revision by one other user not shown)
Line 1:
{{collection | Doubly-linked listLinked_List}}
 
===Doubly-Linked List solutions===
 
[http://www.autohotkey.com/forum/viewtopic.php?t=44657&postdays=0&postorder=asc&start=333 discussion]
<langsyntaxhighlight AutoHotkeylang="autoHotkey">Build(D, L) { ; Double Linked list "D": D_{Head,Tail} = number>0 id of node
Local i ; D_%number%_{P,N,V}: Prev, Next, Value, D_%Free%: next free idx
Loop Parse, L, `,
Line 91 ⟶ 94:
Build("D", L)
MsgBox % "traverse forward: `n" Traverse("D","FW")
MsgBox % "traverse backward: `n" Traverse("D","Back")</langsyntaxhighlight>
9,476

edits