![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
MichaelWo
这个作者很懒,什么都没留下…
展开
-
LeetCode::Reverse Words in a String
#include #include using namespace std; class Solution { public: void reverseWords(string &s) { int i, n; string tmp_s; int word_Length = 0; if(s.empty()) return ; for(i = s.len原创 2014-05-27 09:14:16 · 398 阅读 · 0 评论 -
LeetCode::Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1",原创 2014-05-29 23:26:57 · 535 阅读 · 0 评论 -
LeetCode::Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.原创 2014-06-11 21:01:38 · 423 阅读 · 0 评论