算法分析与设计
Coder_zyq
这个作者很懒,什么都没留下…
展开
-
LeetCode--Longest Substring Without Repeating Characters
LeetCode—Longest Substring Without Repeating Characters原创 2017-09-07 13:06:40 · 292 阅读 · 0 评论 -
LeetCode- Add two number I
LeetCode- Add two number I原创 2018-01-10 17:09:18 · 256 阅读 · 0 评论 -
leetCode -Counting Bits
leetCode 解题报告之Counting Bits原创 2018-01-06 21:36:28 · 225 阅读 · 0 评论 -
算法概论第八章课后题--8.3
算法概论第八章课后题–8.3题目描述STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an integer k, find a satisfying assignment in which at most k variables are tr原创 2018-01-13 15:41:35 · 343 阅读 · 0 评论 -
LeetCode --Best Time to Buy and Sell Stock III
LeetCode –Best Time to Buy and Sell Stock III 技术与社会生态的相互作用,使得技术发展经常带来更深远的问题,远远超出了技术设备的直接目的和运作本身,同样的技术,引入不同的环境,或在不同条件下,会带来非常不同的结果LeetCode Best Time to Buy and Sell Stock III题目描述算法解释代码原创 2018-01-13 14:44:20 · 269 阅读 · 0 评论 -
LeetCode--Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock IIBest Time to Buy and Sell Stock II题目描述算法解释代码题目描述Say you have an array for which the ith element is the price of a given stock on day i.Design an原创 2018-01-13 14:38:40 · 209 阅读 · 0 评论 -
LeetCode- kadane algorithm
LeetCode - kadane algorithm原创 2018-01-13 11:17:31 · 374 阅读 · 0 评论 -
LeetCode- Best Time to Buy and Sell Stock
LeetCode- Best Time to Buy and Sell StockLeetCode- Best Time to Buy and Sell Stock题目描述算法理解代码块题目描述Say you have an array for which the ith element is the price of a given stock o原创 2018-01-13 09:39:54 · 291 阅读 · 0 评论 -
LeetCode -Best Time to Buy and Sell Stock with Cooldown
LeetCode -Best Time to Buy and Sell Stock with CooldownLeetCode -Best Time to Buy and Sell Stock with Cooldown题目描述算法解释代码题目描述Say you have an array for which the ith element is the p原创 2018-01-13 09:35:22 · 234 阅读 · 0 评论 -
LeetCode- Jump game
jump game I原创 2017-11-14 21:25:08 · 336 阅读 · 0 评论 -
LeetCode - jump game II
LeetCode - jump game II原创 2017-11-16 09:18:11 · 395 阅读 · 0 评论 -
LeetCode - Maximum Length Of Pair Chain(算法)
算法概论之LeetCode- Maximum Length Of Pair Chain算法概论之LeetCode- Maximum Length Of Pair Chain题目描述样例输入输出算法描述1. 题目描述You are given n pairs of numbers. In every pair, the first number is原创 2017-10-27 16:31:42 · 276 阅读 · 0 评论 -
LeetCode-Majority Element
Majority ElementMajority Element题目描述算法1 暴力求解n22 桶排序 n较小3 找中位数问题4 Divide and conquer5 Randomization6 Boyer-Moore Algorithm1. 题目描述 Given an array of size n, find the majority element. The m原创 2017-09-17 10:16:52 · 218 阅读 · 0 评论 -
贪心算法之Assign Cookie-leetcode
LeetCode-Assign CookieLeetCode-Assign Cookie问题描述详细讲解代码1. 问题描述 Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at mos原创 2017-10-15 22:41:27 · 270 阅读 · 0 评论 -
LeetCode-Maximum Subarray
最大子序列和问题最大子序列和问题题目描述解题思路直接求解On-动态规划利用分治的方法Onlogn代码1. 题目描述 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. Example given the array [-2原创 2017-09-17 08:54:51 · 311 阅读 · 0 评论 -
LeetCode--Add two Number II
LeetCode–Add two Number IILeetCodeAdd two Number II题目描述算法解释代码题目描述You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes原创 2018-01-10 20:14:24 · 278 阅读 · 0 评论