码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle ii    ( 7733个结果
LeetCode: Remove Duplicates from Sorted Array II [080]
【题目】 Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,2,2,3]. 【题意】 给定一个有序数组,给数组去重,和Remove Duplicates from...
分类:其他好文   时间:2014-06-03 05:36:24    阅读次数:219
LeetCode: Search in Rotated Sorted Array II [081]
【题目】 Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. 【题意】 在“Search in Rotated Sorted Array”的基...
分类:其他好文   时间:2014-06-03 01:55:38    阅读次数:173
[问题2014S15] 复旦高等代数II(13级)每周一题(第十五教学周)
[问题2014S15] 设 \(O\) 为 \(n\) 阶正交阵,\(A=\mathrm{diag}\{a_1,a_2,\cdots,a_n\}\) 为实对角阵, 证明: 方阵 \(OA\) 的特征值 \(\lambda_j\) 适合不等式: \[m\leq |\lambda_j|\leq M,\,...
分类:其他好文   时间:2014-06-02 20:45:15    阅读次数:246
LeetCode: Unique Binary Search Trees II [096]
【题目】 Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3 3 2 1 \ / / / \ ...
分类:其他好文   时间:2014-06-01 15:33:45    阅读次数:297
projecteuler---->problem=12----Highly divisible triangular number
title: The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10,...
分类:其他好文   时间:2014-06-01 10:31:26    阅读次数:233
μCOS-II系统之事件(event)的使用规则及MUTEX实例
*************************************************************************************************************************** 作者:EasyWave 时间:2014.05.31 类别:μC/OS-II-操作系统...
分类:其他好文   时间:2014-06-01 09:39:49    阅读次数:356
μCOS-II系统之事件(event)的使用规则及Semaphore实例
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他好文   时间:2014-06-01 09:13:14    阅读次数:258
μCOS-II系统之事件(event)的使用规则及Semaphore的互斥量用法
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他好文   时间:2014-06-01 09:07:52    阅读次数:305
LeetCode: Subsets II [091]
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If S = [1,2,2], a solution ...
分类:其他好文   时间:2014-06-01 08:51:06    阅读次数:292
LeetCode: Remove Duplicates from Sorted List II [083]
【题目】 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. Given 1->1->1->2->3, return 2->3. 【题意】 给定一个有序链表,删出其中重复出现的值...
分类:其他好文   时间:2014-05-31 21:14:11    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!