- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode 93
LeetCode 93. Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.Example:Input: "25525511135"Output: ["255.255.11.135",...
2018-04-28 13:43:46 813
原创 LeetCode 39
LeetCode 39. Combination SumGiven a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers su...
2018-04-27 22:23:03 1553
原创 LeetCode 11
LeetCode 11. Container With Most WaterGiven n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line...
2018-04-25 19:15:50 476
原创 高级编程技术第十一次作业
第十一章 测试代码11-1 城市和国家import unittestdef func(city, country): return city + ", " + countryclass FunctionTest(unittest.TestCase): def test_city_country(self): fomatted = func("san...
2018-04-09 08:52:51 615
原创 高级编程技术第十次作业
第十章 文件和异常10-1 Python学习笔记with open("hw.txt") as file_object: contents = file_object.read() print (contents)with open("hw.txt") as file_object: for line in file_object.readlines(): ...
2018-04-04 20:39:23 350
原创 高级编程技术第九次作业
第九章 类9-1 餐馆class Restaurant(): def __init__(self): self.restaurant_name = "GoGo" self.cuisine_type = "Spicy" def describe_restaurant(self): print (self.restaurant...
2018-04-02 23:06:15 359
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人