文章分类 -  数据结构与算法

摘要:1 #include 2 #include 3 4 int a[6] = {2,-1,-4,5,-3,7}; 5 int b[6] = {-2,-1,-4,-5,-3,-7}; 6 7 int get_max_sum(int x[],int s) 8 { 9 if(smax)23 ... 阅读全文
posted @ 2014-09-18 21:42 Swartz 阅读(219) 评论(0) 推荐(0)
摘要:作者:Lokki 出处 :http://www.cnblogs.com/Swartz/欢迎转载,也请保留这段声明。谢谢!本问题出处:https://oj.leetcode.com/problems/reverse-words-in-a-string/题目需求本题目的需求很明确,就是将句子按照单词反转... 阅读全文
posted @ 2014-08-21 19:25 Swartz 阅读(380) 评论(0) 推荐(0)