首页 > 其他
[LeetCode]Word Break II
public class Solution { public List wordBreak(String s, Set wordDict) { return helper(s, wordDict, new HashMap>()); } public List ...
分类:其他   时间:2015-12-06 13:07:15    收藏:0  评论:0  赞:0  阅读:107
[LeetCode]Implement Trie (Prefix Tree)
class TrieNode { // Initialize your data structure here. TrieNode[] child; boolean isWord; public TrieNode() { child = new TrieNode...
分类:其他   时间:2015-12-06 13:06:25    收藏:0  评论:0  赞:0  阅读:253
1075. PAT Judge (25)
The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist ...
分类:其他   时间:2015-12-06 13:05:55    收藏:0  评论:0  赞:0  阅读:168
1095. Cars on Campus (30)
(模拟题)时间限制220 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 6 campuses and a lot of gates. From each gate we can collect th...
分类:其他   时间:2015-12-06 13:05:45    收藏:0  评论:0  赞:0  阅读:328
用Qemu模拟vexpress-a9 --- 配置 qemu 的网络功能
分类:其他   时间:2015-12-06 13:05:25    收藏:0  评论:0  赞:0  阅读:264
1063. Set Similarity (25)遍历map
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the tw...
分类:其他   时间:2015-12-06 13:05:15    收藏:0  评论:0  赞:0  阅读:177
cdoj 1256 昊昊爱运动 预处理/前缀和
昊昊爱运动Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/1256Description昊昊喜欢运动他N天内会参加M种运动(每种运动用一个[1,m]的整数表示)舍友有Q个问题问昊昊第l天...
分类:其他   时间:2015-12-06 13:05:05    收藏:0  评论:0  赞:0  阅读:230
1102. Invert a Binary Tree (25)
反转二叉树就是左右节点互换层遍历使用队列实现中序遍历递归实现The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you ca...
分类:其他   时间:2015-12-06 13:04:45    收藏:0  评论:0  赞:0  阅读:133
Xcode各种版本官方现在地址
IOS开发中,由于版本经常更新,为适配新的版本我们通常要相应的更新Xcode,通常我们可以在iTunes上直接更新,但是由于网速的问题,一般会非常之慢。这时候我们可能会选择在网上找一个安装包,由于前段时间在网上看到有些Xcode有病毒,所以最好用官方的版本。这里提供了官方的下载地址,要比在iTune...
分类:其他   时间:2015-12-06 13:04:35    收藏:0  评论:0  赞:0  阅读:114
1079. Total Sales of Supply Chain (25)
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer...
分类:其他   时间:2015-12-06 13:04:15    收藏:0  评论:0  赞:0  阅读:180
1069. The Black Hole of Numbers (20)
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre...
分类:其他   时间:2015-12-06 13:03:35    收藏:0  评论:0  赞:0  阅读:258
1099. Build A Binary Search Tree (30)
freopen("Text.txt", "r", stdin); 输入输出重定向,神器建立二叉树,注意中序遍历和指针的使用 时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is ...
分类:其他   时间:2015-12-06 13:03:25    收藏:0  评论:0  赞:0  阅读:251
cdoj 1253 阿里巴巴和n个大盗 博弈论
阿里巴巴和n个大盗Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/1253Description阿里巴巴和n个大盗来到了一个藏满宝石的洞穴。洞里一共有m颗价值连城的宝石,每一颗都等价。盗...
分类:其他   时间:2015-12-06 13:03:05    收藏:0  评论:0  赞:0  阅读:146
【转】设计模式六大原则(2):里氏替换原则
肯定有不少人跟我刚看到这项原则的时候一样,对这个原则的名字充满疑惑。其实原因就是这项原则最早是在1988年,由麻省理工学院的一位姓里的女士(Barbara Liskov)提出来的。定义1:如果对每一个类型为 T1的对象 o1,都有类型为 T2 的对象o2,使得以 T1定义的所有程序 P 在所有的.....
分类:其他   时间:2015-12-06 13:02:55    收藏:0  评论:0  赞:0  阅读:204
1071. Speech Patterns (25)
map的使用时间限制300 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HOU, QimingPeople often have a preference among synonyms of the same word. For example, some ma...
分类:其他   时间:2015-12-06 13:02:45    收藏:0  评论:0  赞:0  阅读:279
1091. Acute Stroke (30)
One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions ...
分类:其他   时间:2015-12-06 13:02:25    收藏:0  评论:0  赞:0  阅读:239
1057. Stack (30)
set的使用和它的迭代器的使用Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations...
分类:其他   时间:2015-12-06 13:02:15    收藏:0  评论:0  赞:0  阅读:186
【转】设计模式六大原则(1):单一职责原则
定义:不要存在多于一个导致类变更的原因。通俗的说,即一个类只负责一项职责。问题由来:类T负责两个不同的职责:职责P1,职责P2。当由于职责P1需求发生改变而需要修改类T时,有可能会导致原本运行正常的职责P2功能发生故障。解决方案:遵循单一职责原则。分别建立两个类T1、T2,使T1完成职责P1功能,....
分类:其他   时间:2015-12-06 13:02:05    收藏:0  评论:0  赞:0  阅读:169
1087. All Roads Lead to Rome (30)
时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIndeed there are many different tourist routes from our city to Rome. You are supposed to fi...
分类:其他   时间:2015-12-06 13:01:45    收藏:0  评论:0  赞:0  阅读:241
使用loadNibNamed加载xib后,程序crash
最近在学ios开发,使用bundle 加载xib时第一次没问题,第二次就奔溃了,搞了一早上不知道哪里出问题了奔溃的代码段为:UIView *view = [[[NSBundle mainBundle] loadNibNamed:@"AppInfoView" owner:nil options:nil...
分类:其他   时间:2015-12-06 13:01:35    收藏:0  评论:0  赞:0  阅读:744
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!