Leetcode
美国队长
专注于工业互联网领域,擅长企业级工业互联网平台架构及落地。
展开
-
LeetCode Max Points on a Line
/** * Definition for a point. * class Point { * int x; * int y; * Point() { x = 0; y = 0; } * Point(int a, int b) { x = a; y = b; } * } */public class Solution {原创 2014-05-15 18:00:27 · 788 阅读 · 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"原创 2014-05-15 17:50:21 · 580 阅读 · 0 评论 -
Leetcode Sort List
题目:Sort a linked list in O(n log n) time using constant space complexity.答案,源代码:原创 2014-05-15 17:36:53 · 622 阅读 · 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:["原创 2014-05-15 17:55:10 · 650 阅读 · 0 评论 -
LeetCode Reverse Words in a String
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".原创 2014-05-15 17:44:23 · 690 阅读 · 0 评论