码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle ii    ( 7733个结果
LeetCode: Triangle
LeetCode: TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For exa...
分类:其他好文   时间:2014-08-25 22:48:14    阅读次数:306
Quartus 12的TimeQuest Timing Analyzer
Quartus 12的TimeQuest Timing Analyzer1.在Quartus II软件打开和设置设计 安装路径下\qdesigns\fir_fliter文件。在Processing 菜单上,指向Start,点击Start Analysis &Synthesis。2.运行TimeQue...
分类:其他好文   时间:2014-08-25 13:16:34    阅读次数:471
19. Palindrome Partitioning && Palindrome Partitioning II (回文分割)
思想: 简单的深度优先搜索。 思想: 动态规划: n = s.length(); Record[i] = 0 , ( i = n || is...
分类:其他好文   时间:2014-08-25 02:17:23    阅读次数:187
18. Word Ladder && Word Ladder II
我的方案中,使用两个 hash_set 分别存储当前层和下一层结点,另一个 hash_set存储之前遍历过的结点。 思想: 在 I 的基础之上, 加入 hash_map 记下每条边, 从 end 开始搜索,建立以 start 为源点,end 为汇点的图,然后从 start 开始深搜即可。
分类:其他好文   时间:2014-08-25 02:15:43    阅读次数:264
14. Reverse Linked List II
总结:其实就是反转链表。不过是反转中间一部分。要注意的是保存第一个结点的前继的指针; 若第一个结点是头结点,注意反转子串的尾结点变为头结点。
分类:其他好文   时间:2014-08-25 01:07:43    阅读次数:198
[LeetCode] Combination Sum II (递归)
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb...
分类:其他好文   时间:2014-08-24 23:29:33    阅读次数:176
Triangle
Triangle  Total Accepted: 16109 Total Submissions: 60327My Submissions Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row...
分类:其他好文   时间:2014-08-23 16:54:11    阅读次数:253
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II  Total Accepted: 17137 Total Submissions: 69046My Submissions Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...
分类:其他好文   时间:2014-08-23 14:00:40    阅读次数:187
LeetCode--Populating Next Right Pointers in Each Node II
同上题:但是这题需要考虑好对当前节点的left和right的next指针如何设置。 1 /** 2 * Definition for binary tree with next pointer. 3 * struct TreeLinkNode { 4 * int val; 5 * Tre...
分类:其他好文   时间:2014-08-22 22:23:59    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!