Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Go
/ MoveToBack
Method
MoveToBack
structure/linkedlist/doubly.go:206–212 ·
view source on GitHub ↗
(n *Node[T])
Source
from the content-addressed store, hash-verified
204
}
205
206
func
(ll *Doubly[T]) MoveToBack(n *Node[T]) {
207
if
ll.Head.Prev == n {
208
return
209
}
210
211
ll.move(n, ll.Head.Prev)
212
}
213
214
func
(ll *Doubly[T]) move(n, at *Node[T]) {
215
if
n == at {
Callers
2
Get
Method · 0.80
Put
Method · 0.80
Calls
1
move
Method · 0.95
Tested by
no test coverage detected