MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / restoreIpAddresses

Method restoreIpAddresses

93. Restore IP Addresses/Solution.cpp:38–40  ·  view source on GitHub ↗

Input: "25525511135" Output: ["255.255.11.135", "255.255.111.35"]

Source from the content-addressed store, hash-verified

36 // Input: "25525511135"
37 // Output: ["255.255.11.135", "255.255.111.35"]
38 vector<string> restoreIpAddresses(string s) {
39 return this->ipFromNPart(4, s);
40 }
41};
42
43

Callers 1

mainFunction · 0.80

Calls 1

ipFromNPartMethod · 0.95

Tested by

no test coverage detected