- 博客(6)
- 资源 (12)
- 收藏
- 关注
原创 LeetCode238. Product of Array Except Self解题
看一下题目Given 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 elements of nums except nums[i].Solve it without division and in O(n).
2017-11-27 08:37:31 192
原创 LeetCode121. Best Time to Buy and Sell Stock解题
乍一看这题很熟悉,原来之前做过它的第二道,参见 LeetCode122.Best Time to Buy and Sell Stock解题 @GhostLWB来看一下题目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted t
2017-11-23 11:50:34 210
原创 LeetCode442. Find All Duplicates in an Array解题
忙一点总比闲着好,是吧先来看一下题目Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twice in this array.Could you do it w
2017-11-21 15:17:08 175
原创 LeetCode268. Missing Number解题
Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array.For example, Given nums = [0, 1, 3] return 2.Note: Your algorithm should run in line
2017-11-18 21:05:06 167
原创 LeetCode628. Maximum Product of Three Numbers 解题
先看看题目:先看看题目:Given an integer array, find three numbers whose product is maximum and output the maximum product. 题目意思是说,给定一个整数的数组,找到三个能产生最大的积的数看一下例子 Example 1: Input: [1,2,3] Output: 6 E
2017-11-17 21:08:45 214
原创 LeetCode717. 1-bit and 2-bit Characters 解题
废话不多说,先来看题目看一下题目We have two special characters. The first character can be represented by one bit 0.
2017-11-15 17:27:21 1471 2
JPG图像压缩MATLAB代码
2020-01-09
数字图像处理小抄 半开卷考试资料 中山大学 研究生 本科生
2020-01-09
project2013模板包(一共11个 )
2018-01-26
二进制炸弹代码及gdb调试工具
2017-10-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人