MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / pop

Function pop

go/0022-generate-parentheses.go:31–35  ·  view source on GitHub ↗
(list *[]string)

Source from the content-addressed store, hash-verified

29}
30
31func pop(list *[]string) {
32 //since pop() function in go doesn't exist
33 length := len(*list)
34 *list = (*list)[:length-1]
35}

Callers 1

generateParenthesisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected