上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 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-11-28 20:40 A_zhu 阅读(489) 评论(0) 推荐(0) 编辑
摘要: Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p... 阅读全文
posted @ 2014-11-28 15:48 A_zhu 阅读(245) 评论(0) 推荐(0) 编辑
摘要: You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Hide TagsArray 一题严... 阅读全文
posted @ 2014-11-28 13:56 A_zhu 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol... 阅读全文
posted @ 2014-11-28 12:38 A_zhu 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2014-11-28 05:47 A_zhu 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECOD... 阅读全文
posted @ 2014-11-28 05:13 A_zhu 阅读(2800) 评论(1) 推荐(0) 编辑
摘要: 这个实现语句如下,(写在2行然后向下拖动)(2007或以上版本): 1 = 2 IF(OR($D20,ISBLANK($H2),$G2="111"), 3 "", 4 IF(OR($G2="222",$G2="333"), 5 IF($H2>0,1,-1)*SUMIFS(INDIRECT("... 阅读全文
posted @ 2014-11-25 01:32 A_zhu 阅读(1875) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include using namespace std;//字符串分割函数 vector split( string str, string pattern){ vector ret;... 阅读全文
posted @ 2014-09-19 12:20 A_zhu 阅读(23040) 评论(0) 推荐(1) 编辑
摘要: http://www.cnblogs.com/changchengxiao/p/3413294.htmlGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Yo... 阅读全文
posted @ 2014-09-04 17:25 A_zhu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/huazhigang/article/details/11745551C语言[cpp]view plaincopy//二维数组动态数组分配和释放//数组指针的内存分配和释放//方法一char(*a)[N];//指向数组的指针a=(char(*)[N])mal... 阅读全文
posted @ 2014-09-01 23:02 A_zhu 阅读(969) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页