Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VanjaRo/LeetCode
/ main
Function
main
tasks/71.go:7–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
)
6
7
func
main() {
8
str :=
"/a//b////c/d//././/.."
9
fmt.Print(simplifyPath(str))
10
}
11
12
func
simplifyPath(path string) string {
13
start := 0
Callers
nothing calls this directly
Calls
2
simplifyPath
Function · 0.85
Print
Method · 0.80
Tested by
no test coverage detected