2016年4月13日

238. Product of Array Except Self(对O(n)和递归又有了新的理解)

摘要: 238. Product of Array Except Self Total Accepted: 41565 Total Submissions: 97898 Difficulty: Medium Given an array of n integers where n > 1, nums, re 阅读全文

posted @ 2016-04-13 10:21 Alex0111 阅读(217) 评论(0) 推荐(0)

2016年4月12日

8. String to Integer (atoi)

摘要: 8. String to Integer (atoi) Total Accepted: 97070 Total Submissions: 721266 Difficulty: Easy Implement atoi to convert a string to an integer. Hint: C 阅读全文

posted @ 2016-04-12 15:47 Alex0111 阅读(246) 评论(0) 推荐(0)

c 类型转换

摘要: double ←── float 高 ↑ long ↑ unsigned ↑ int ←── char,short 低 图中横向箭头表示必须的转换,如两个float型数参加运算,虽然它们类型相同,但仍要先转成double型再进行运算,结果亦为double型。 纵向箭头表示当运算符两边的运算数为不同类 阅读全文

posted @ 2016-04-12 14:33 Alex0111 阅读(144) 评论(0) 推荐(0)

100. Same Tree

摘要: 100. Same Tree Total Accepted: 122794 Total Submissions: 284606 Difficulty: Easy Given two binary trees, write a function to check if they are equal o 阅读全文

posted @ 2016-04-12 10:37 Alex0111 阅读(163) 评论(0) 推荐(0)

2016年4月11日

师兄评论网址用

摘要: 0.0 阅读全文

posted @ 2016-04-11 18:11 Alex0111 阅读(220) 评论(7) 推荐(0)

260. Single Number III

摘要: 260. Single Number III Total Accepted: 30927 Total Submissions: 71149 Difficulty: Medium Given an array of numbers nums, in which exactly two elements 阅读全文

posted @ 2016-04-11 13:32 Alex0111 阅读(110) 评论(0) 推荐(0)

2016年4月10日

stardict词库

摘要: http://download.huzheng.org/zh_CN/ sudo tar -jxvf * -C /usr/share/stardict/dic 阅读全文

posted @ 2016-04-10 14:25 Alex0111 阅读(407) 评论(1) 推荐(0)

137. Single Number II

摘要: 137. Single Number II Total Accepted: 80477 Total Submissions: 214984 Difficulty: Medium Given an array of integers, every element appears three times 阅读全文

posted @ 2016-04-10 12:32 Alex0111 阅读(317) 评论(0) 推荐(0)

237. Delete Node in a Linked List

摘要: 237. Delete Node in a Linked List Total Accepted: 74501 Total Submissions: 170753 Difficulty: Easy Write a function to delete a node (except the tail) 阅读全文

posted @ 2016-04-10 12:08 Alex0111 阅读(196) 评论(0) 推荐(0)

283. Move Zeroes

摘要: 283. Move Zeroes Total Accepted: 71969 Total Submissions: 163725 Difficulty: Easy Given an array nums, write a function to move all 0's to the end of 阅读全文

posted @ 2016-04-10 11:46 Alex0111 阅读(171) 评论(0) 推荐(0)

导航