摘要: 好久没写动态规划,中午听到学长们讨论的一道题,就是给出一组硬币面额,和一个目标数值,求有几种找零方式(想半天没想清楚)#include #include using namespace std;int count(int* s, int m, int n) { if (n == 0) retu... 阅读全文
posted @ 2014-05-08 23:48 卖程序的小歪 阅读(226) 评论(0) 推荐(0) 编辑
摘要: class Solution{ public: int maxArea(vector& height) { int len = height.size(), low = 0, high = len -1 ; int maxArea = 0; ... 阅读全文
posted @ 2014-05-08 09:56 卖程序的小歪 阅读(154) 评论(0) 推荐(0) 编辑