- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 刷题(3)整数排序(python)
class Solution: """ @param A: an integer array @return: nothing """ def sortIntegers(self, A): # write your code here n=len(A) for j in range (0,n-1): ...
2018-10-24 16:53:59 662
转载 二叉树的最大值求法
class Solution: """ @param: root: the root of tree @return: the max node """ def maxNode(self, root): if root is None: return None left = ...
2018-10-23 18:08:37 4802
原创 程序员刷题(2)求矩阵面积 (Python)
class Rectangle(object): width=0 height=0 def __init__(self,width,height): self.width = width self.height = height def getArea(self): return( self.width*self.heig...
2018-10-22 21:18:48 950
转载 程序员刷题(1)反转三位数(python)
程序员常用刷题(1)反转一个三位数class Solution:“”"@param number: A 3-digit number.@return: Reversed number.“”"def reverseInteger(self, number): unit=int(number%10) ten=int((number%100)/10) hun=int(...
2018-10-19 11:05:53 751
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人