MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / minValNode

Function minValNode

tasks/21.go:35–46  ·  view source on GitHub ↗
(fNode, sNode *ListNode)

Source from the content-addressed store, hash-verified

33}
34
35func minValNode(fNode, sNode *ListNode) (*ListNode, bool) {
36 if sNode == nil {
37 return fNode, true
38 }
39 if fNode == nil {
40 return sNode, false
41 }
42 if sNode.Val < fNode.Val {
43 return sNode, false
44 }
45 return fNode, true
46}

Callers 1

mergeTwoListsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected