- 博客(6)
- 收藏
- 关注
原创 2016-9月份至今读的小说记录
1.纸房子 2.局外人 3.发条橙 4.田园交响曲 5.六点二十七分的朗读者 6.龙纹身的女孩 8.多莱尔的希腊神话书 9.圣经的故事 10.夏先生的故事 11.慰安妇 12.丑陋的中国人 13.宽客人生 14.我的职业是小说家 15.长崎 16.怪医杜立德 17.罗生门 18.且听风吟 19.告白 20.青春 21.树上的男爵 22....
2017-07-13 11:19:23 763 1
原创 4.[easy] remove elements
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory.
2017-07-04 14:46:26 374
原创 3.[easy] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判断是否是回文数 先不考虑使用额外空间的问题 最直观的就是转换成字符串首尾比对 1.字符串解法 def is_palindrome(num): if num < 0: return False i = 0
2017-07-04 13:49:59 219
原创 2.[easy] Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus points for y
2017-07-04 10:20:33 169
原创 1.[easy] Two Sum
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 have exactly one solution, and you may not use the sam
2017-07-03 17:35:36 190
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人