2016年9月13日

Leetcode 215. Kth Largest Element in an Array 数组中第K大的数 in Java

摘要: 215. Kth Largest Element in an Array 215. Kth Largest Element in an Array Total Accepted: 76233 Total Submissions: 213997 Difficulty: Medium Find the  阅读全文

posted @ 2016-09-13 14:36 颜YQ 阅读(168) 评论(0) 推荐(0) 编辑

2016年9月8日

Leetcode 69. Sqrt(x) 求整数根 in Java

摘要: 69. Sqrt(x) 69. Sqrt(x) Total Accepted: 109623 Total Submissions: 418262 Difficulty: Medium Implement int sqrt(int x). Compute and return the square r 阅读全文

posted @ 2016-09-08 22:32 颜YQ 阅读(543) 评论(0) 推荐(0) 编辑

Leetcode 50. Pow(x, n) x的n次方 in Java

摘要: 50. Pow(x, n) 50. Pow(x, n) Total Accepted: 106878 Total Submissions: 388728 Difficulty: Medium Implement pow(x, n). public class Solution { public do 阅读全文

posted @ 2016-09-08 21:23 颜YQ 阅读(787) 评论(0) 推荐(0) 编辑

2016年9月7日

Leetcode 148. Sort List 归并排序 in Java

摘要: 148. Sort List 148. Sort List Total Accepted: 81218 Total Submissions: 309907 Difficulty: Medium Sort a linked list in O(n log n) time using constant 阅读全文

posted @ 2016-09-07 22:02 颜YQ 阅读(334) 评论(0) 推荐(0) 编辑

Leetcode 147. Insertion Sort List 插入排序 in Java

摘要: 147. Insertion Sort List 147. Insertion Sort List Total Accepted: 80869 Total Submissions: 263074 Difficulty: Medium Sort a linked list using insertio 阅读全文

posted @ 2016-09-07 20:56 颜YQ 阅读(177) 评论(0) 推荐(0) 编辑

导航