- 博客(3)
- 收藏
- 关注
原创 Leetcode: Max Points on a Line
出处:http://oj.leetcode.com/problems/max-points-on-a-line/ Python solution: # Definition for a point # class Point: # def __init__(self, a=0, b=0): # self.x = a # self.y = b c
2014-04-02 09:52:56 373
原创 Leetcode: Evaluate Reverse Polish Notation
http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/ Solution in Python: class Solution: # @param tokens, a list of string # @return an integer def evalRPN(self, toke
2014-03-29 05:19:52 359
原创 Leetcode: reverse words in a string
http://oj.leetcode.com/problems/reverse-words-in-a-string/ class Solution: # @param s, a string # @return a string def reverseWords(self, s): return ' '.join(s.split()[::-
2014-03-29 05:14:21 653
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人