摘要:
#include#include#include#include#include#include#includeusingnamespacestd;intevalRPN(vector&tokens){stackvalue;inti=0;for(i=0;is;s.push_back("4");s.pu... 阅读全文
摘要:
#include#include#include#includeusingnamespacestd;voidreverseWords(string&s){stringrs;for(inti=s.length()-1;i>=0;){while(s[i]==''&&i>=0)i--;if(i=0)t.p... 阅读全文
摘要:
#include#includeusingnamespacestd;intmin(inta,intb){returna>b?b:a;}intmax(inta,intb){returna>b?a:b;}intmaxProduct(intA[],intn){if(n==0){return0;}if(n=... 阅读全文