- 博客(6)
- 收藏
- 关注
原创 Leetcode: Drop Eggs — Python
Leetcode: Drop Eggs — PythonQuestionAnswernote Question You 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 242
原创 Leetcode: Single Number — Python
Leetcode: Single Number — PythonQuestionAnswernote Question Given a non-empty array of integers, every element appears twice except for one. Find that single one. Answer class Solution(object): de...
2019-01-03 15:52:22 131
原创 Leetcode: Hamming Distance — Python
Leetcode: Hamming Distance — PythonQuestionAnswernotes Question The 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 107
原创 Leetcode: Two Sum — python
leetcode questions — pythonQuestionAnswernotes Question Given 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 92
转载 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 78
原创 Python-list,set
list 定义 s = [] 用[]来保存数据,数据可以是不同的类型 添加或者删除数据 添加到尾部:s.append() 添加到中间:s.insert(1, ‘a’) 删除某个数据:s.pop(‘a’) 添加某个数组:s.append(s1)/s.extend(s1) set 1. s = set([‘A’, ‘B’, ‘C’]) 2. 用()来保存数据,数组内的数不...
2018-08-17 14:31:34 470
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人