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)
Month: January 2014
bookmark_borderLeetcode笔记(3)Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
bookmark_borderLeetcode笔记(2)Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.
bookmark_borderLeetcode 笔记(1): Sqrt(x)
http://oj.leetcode.com/problems/sqrtx/