problem0093

package
v0.0.0-...-db5e768 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 1 Imported by: 0

README

93. Restore IP Addresses

题目

Given a string containing only digits, restore it by returning all possible valid IP address combinations.

For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"]. (Order does not matter)

解题思路

见程序注释

下次做此题,不要用 DFS 方法。普通的递归更快。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IP

func IP(s []string) string

IP 返回 s 代表的 IP 地址

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL