摘要: matlab工具deploytool编译M为可执行程序http://blog.sina.com.cn/s/blog_60f8483a0100gnsm.html 阅读全文
posted @ 2014-10-14 19:17 Marrybe 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh... 阅读全文
posted @ 2014-07-20 16:30 Marrybe 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog... 阅读全文
posted @ 2014-07-20 12:17 Marrybe 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace... 阅读全文
posted @ 2014-07-18 12:16 Marrybe 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.VS2005中对于A[i](i<0,比如i=-1)这样的代码不会报错,运行时也不会错,但这显然是不合法的。 阅读全文
posted @ 2014-07-17 10:51 Marrybe 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 需要仔细回顾的题目:1.Interleaving String 交叉存取字符串2.Decode Ways 字符串解码3.Subsets Subsets II 求一个集合的幂集 阅读全文
posted @ 2014-07-16 19:51 Marrybe 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.下面是百度得到的关于罗马数的解释:我的代码: 1 class Solution { 2 ... 阅读全文
posted @ 2014-07-15 21:12 Marrybe 阅读(144) 评论(0) 推荐(0) 编辑
摘要: A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta... 阅读全文
posted @ 2014-07-15 19:19 Marrybe 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 void splitnum(int n, int k, int &way, vector ans) //对n进... 阅读全文
posted @ 2014-07-05 12:10 Marrybe 阅读(973) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int a[20]={0,1}; //a[i]=1表示i已经使用过, a[i]=0表示i尚未使用过10 int... 阅读全文
posted @ 2014-07-04 22:18 Marrybe 阅读(140) 评论(0) 推荐(0) 编辑