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

Function abs

tasks/20.go:57–62  ·  view source on GitHub ↗
(a byte)

Source from the content-addressed store, hash-verified

55}
56
57func abs(a byte) byte {
58 if a > 0 {
59 return a
60 }
61 return -a
62}

Callers 1

isValidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected