- 博客(6)
- 收藏
- 关注
原创 Leetcode: Drop Eggs — Python
Leetcode: Drop Eggs — PythonQuestionAnswernoteQuestionYou are given K eggs, and you have access to a building with N floors from 1 to N.Each egg is identical in function, and if an egg breaks, you ...
2019-01-08 22:04:44
346
原创 Leetcode: Single Number — Python
Leetcode: Single Number — PythonQuestionAnswernoteQuestionGiven a non-empty array of integers, every element appears twice except for one. Find that single one.Answerclass Solution(object): de...
2019-01-03 15:52:22
198
原创 Leetcode: Hamming Distance — Python
Leetcode: Hamming Distance — PythonQuestionAnswernotesQuestionThe Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x...
2019-01-03 14:56:45
241
原创 Leetcode: Two Sum — python
leetcode questions — pythonQuestionAnswernotesQuestionGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would ...
2019-01-03 13:40:30
162
转载 SQL学习记录
SQL学习记录题目解答题目对所有员工的当前(to_date=‘9999-01-01’)薪水按照salary进行按照1-N的排名,相同salary并列且按照emp_no升序排列CREATE TABLE salaries (emp_no int(11) NOT NULL,salary int(11) NOT NULL,from_date date NOT NULL,to_date dat...
2018-10-08 14:19:42
104
原创 Python-list,set
list定义 s = []用[]来保存数据,数据可以是不同的类型添加或者删除数据 添加到尾部:s.append()添加到中间:s.insert(1, ‘a’)删除某个数据:s.pop(‘a’)添加某个数组:s.append(s1)/s.extend(s1)set1. s = set([‘A’, ‘B’, ‘C’]) 2. 用()来保存数据,数组内的数不...
2018-08-17 14:31:34
543
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人