码迷,mamicode.com
首页 >  
搜索关键字:suppose    ( 588个结果
PAT006 Tree Traversals Again
题目:An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with ...
分类:其他好文   时间:2015-04-12 16:06:42    阅读次数:107
LeetCode33 Search in Rotated Sorted Array
Problem:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a tar...
分类:其他好文   时间:2015-04-09 21:24:07    阅读次数:97
[LeetCode]Find Minimum in Rotated Sorted Array II
Follow up for “Find Minimum in Rotated Sorted Array”: What if duplicates are allowed? Would this affect the run-time complexity? How and why? Suppose a sorted array is rotated at some pivot...
分类:其他好文   时间:2015-04-09 19:49:17    阅读次数:115
hdu 2069 Coin Change 背包。本来打算用母函数再写一遍的,发现代码极其相似,就没写
Problem Description Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. We want to make changes with these coins for a given amount of money. For example, if we have 11 cents, then we can make changes with one 10-cent coin a...
分类:其他好文   时间:2015-04-08 16:35:21    阅读次数:132
Search in Rotated Sorted Array--LeetCode
题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the ar...
分类:其他好文   时间:2015-04-07 17:42:36    阅读次数:161
NYOJ 题目587 blockhouses(二分图最大匹配)
blockhouses 时间限制:1000 ms  |  内存限制:65535 KB 难度:3 描述Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing ...
分类:其他好文   时间:2015-04-06 15:45:43    阅读次数:165
数理统计习题二
{\bf Question 2:\ }Suppose that $X$ has density function\[f_\theta(x) = \frac{x^{\theta-1} e^{-x}}{\Gamma(\theta)} I \{ x>0\}.\]Find expressions for t...
分类:其他好文   时间:2015-04-01 17:24:12    阅读次数:118
Leetcode: Find Minimum in Rotated Sorted Array
题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element.You may assume no duplicate exists in the array....
分类:其他好文   时间:2015-03-30 11:22:35    阅读次数:99
[LeetCode]Find Minimum in Rotated Sorted Array
Find Minimum in Rotated Sorted Array Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element....
分类:其他好文   时间:2015-03-29 12:19:27    阅读次数:160
zoj 5303 Grouping 缩点求最长路
点击打开链接 Grouping Time Limit: 2 Seconds      Memory Limit: 65536 KB Suppose there are N people in ZJU, whose ages are unknown. We have some messages about them. The i-th message shows that th...
分类:其他好文   时间:2015-03-21 18:41:36    阅读次数:154
588条   上一页 1 ... 43 44 45 46 47 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!