Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VanjaRo/LeetCode
/ reverse
Function
reverse
tasks/332.go:73–78 ·
view source on GitHub ↗
(ss *[]string)
Source
from the content-addressed store, hash-verified
71
}
72
73
func
reverse(ss *[]string) {
74
n := len(*ss)
75
for
i := 0; i < n/2; i++ {
76
(*ss)[i], (*ss)[n-1-i] = (*ss)[n-1-i], (*ss)[i]
77
}
78
}
Callers
1
findItinerary
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected