MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / insert

Method insert

java/0146-lru-cache.java:55–64  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

53
54 // insert node at right
55 public void insert(Node node) {
56 Node prev = this.right.prev;
57 Node next = this.right;
58
59 prev.next = node;
60 next.prev = node;
61
62 node.next = next;
63 node.prev = prev;
64 }
65
66 private class Node {
67

Callers 5

getMethod · 0.95
putMethod · 0.95
removeKdigitsMethod · 0.45
simplifyPathMethod · 0.45
convertToTitleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected