Leetcode
lix7
只想成为更好的自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode[238]Product of Array Except Self
238. Product of Array Except Self My Submissions QuestionEditorial SolutionGiven an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the原创 2016-04-04 22:39:42 · 454 阅读 · 0 评论 -
LeetCode[260]Single Number III
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example:Given nums = [1,原创 2016-04-23 01:18:05 · 417 阅读 · 0 评论 -
LeetCode[137]Single Number II
·原创 2016-04-19 16:28:02 · 295 阅读 · 0 评论 -
LeetCode[28]Implement strStr()
Implement strStr()原创 2015-02-24 21:24:51 · 413 阅读 · 0 评论 -
LeetCode[155]Min Stack
Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top() –原创 2015-02-23 23:32:02 · 426 阅读 · 0 评论 -
LeetCode[172]Factorial Trailing Zeroes
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 解析: 只有2和5相乘才会出现0,其中整十也可以看做是2和5相乘的结果,所以,可以在n之前看看有多少个2以及多少个5就行了,又发现2的转载 2015-02-23 14:12:21 · 406 阅读 · 0 评论 -
LeetCode[88]Merge Sorted Array
Merge Sorted Array原创 2015-02-24 20:57:55 · 375 阅读 · 0 评论 -
LeetCode[160]Intersection of Two Linked Lists
Intersection of Two Linked原创 2015-02-23 20:21:35 · 395 阅读 · 0 评论 -
LeetCode[168]Excel Sheet Column Title
LeetCode原创 2015-02-23 14:33:38 · 482 阅读 · 0 评论
分享