码迷,mamicode.com
首页 >  
搜索关键字:permutations ii    ( 7008个结果
leetcode Best Time to Buy and Sell Stock II
和上一题类似Best Time to Buy and Sell Stock,这里还是用一个数组存每天股票价格,你有很多次买入卖出的机会,但是每次买入要在前一次卖出前。Say you have an array for which theithelement is the price of a giv...
分类:其他好文   时间:2014-12-02 22:30:53    阅读次数:182
任务的调度与切换(uC/OS-II)
一、任务的状态任务的5种状态:休眠态、就绪态、运行态、挂起态(等待某一事件发生)和被中断态。1、休眠态任务驻留在内存中,但并不被多任务内核所调度。2、就绪态任务已经准备好,可以运行,但由于该任务的优先级比正在运行的任务的优先级低,暂时不能运行。3、运行态任务掌握了CPU的使用权,正在运行中。4、挂起...
分类:其他好文   时间:2014-12-02 20:46:28    阅读次数:296
[LeetCode] Linked List Cycle II 单链表中的环之二
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve it without using extra space?这...
分类:其他好文   时间:2014-12-02 14:55:22    阅读次数:195
leetcode Pascal's Triangle II
和Pascal's Triangle类似,这里是不需要记录所有的,而是给定一个行号,返回那一行的数据就可以了。例如:For example, givenk= 3,Return[1,3,3,1].所以给0的时候返回[1].题目要求O(k)空间,也就是除了要返回的空间外,其他是常数空间。那就用一个tmp...
分类:其他好文   时间:2014-12-02 13:26:48    阅读次数:185
HDU--2639--Bone Collector II--01背包
Bone Collector IITime Limit: 5000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2464    Accepted Submission(s): 1295 Problem DescriptionThe title of this pr...
分类:其他好文   时间:2014-12-02 01:36:20    阅读次数:263
leetcode Populating Next Right Pointers in Each Node II
这题和上一题Populating Next Right Pointers in Each Node的不一样了,这里要求的是普通的树,难度就比较大了。之前是简单的找到左边的最后,和右边的最左链接就可以了。现在存在的问题是可能右边的左右一层不是在最左或者长度不一等等。 1 / ...
分类:其他好文   时间:2014-12-02 01:32:12    阅读次数:165
Sitecore7.5 安装指南 -- 环境要求
环境要求分为: a. Sitecore服务器环境的要求 b. sitecore客户端的要求 1. Sitecore服务器环境要求 a. IIS的要求,支持如下版本的IIS版本: i. IIS 8.5 ii. IIS 8.0 iii. IIS 7.5 iv. IIS 7.0 注意: Sitecore既不...
分类:其他好文   时间:2014-12-01 22:41:45    阅读次数:180
[leetcode]Remove Duplicates from Sorted List II
问题描述: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Giv...
分类:其他好文   时间:2014-12-01 22:31:26    阅读次数:221
任务就绪表的结构与操作(uC/OS-II)
一、任务就绪表的结构每个任务被赋予不同的优先等级,从0级到最低优先级OS_LOWEST_PRIO,包括0和OS_LOWEST_PRIO在内。当uC/OS-II初始化时,最低优先级OS_LOWEST_PRIO总是被赋给空闲任务idle task。注意:最多任务数目OS_MAX_TASKS和最低优先级数...
分类:其他好文   时间:2014-12-01 22:06:25    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!