ywl0211
ywl0211
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
ywl0211的博客
全部文章
(共6篇)
题解 | #求二叉树的前序遍历#
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # # @param root TreeN...
Python3
2021-10-25
1
416
题解 | #二叉树的后序遍历#
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # # @param root TreeN...
Python3
2021-10-25
1
482
题解 | #链表排序#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # # @param head ListNode类 # @return ListNode类 # ...
Python3
2021-10-25
1
490
题解 | #多少个点位于同一直线#
# class Point: # def __init__(self, a=0, b=0): # self.x = a # self.y = b # # # @param points Point类一维数组 # @return int整型 # class...
Python3
2021-10-25
0
658
题解 | #后缀表达式求值#
# # # @param tokens string字符串一维数组 # @return int整型 # class Solution: def evalRPN(self , tokens ): # write code here ss = ['+', '-...
Python3
2021-10-25
0
535
题解 | #二叉树的最小深度#
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # # @param root TreeN...
Python3
2021-10-25
2
839