package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev

# README

93. Restore IP Addresses

Solution idea

DFS

# levels = 4
# branches = 3

level 表示把整个 s 分割成四份

每个branch 表示取 一位数,两位数,三位数

注意:开头为0的两位/三位数不合法 eg. 01, 012

Time complexity = O((n-1) choose 3) where n is length of s