MCPcopy 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
206func (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
214func (ll *Doubly[T]) move(n, at *Node[T]) {
215 if n == at {

Callers 2

GetMethod · 0.80
PutMethod · 0.80

Calls 1

moveMethod · 0.95

Tested by

no test coverage detected