摘要: https://leetcode.cn/problems/P5rCT8/ /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * 阅读全文
posted @ 2022-06-28 21:33 知道了呀~ 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/questionTerminal/a2a1d0266629404fba582d416d84b6a0来源:牛客网 把 M 个同样的苹果放在 N 个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法? 注意:5、1、1 和 1、5、1 是同 阅读全文
posted @ 2022-06-28 21:06 知道了呀~ 阅读(134) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/bulb-switcher/ 阅读全文
posted @ 2022-06-28 15:34 知道了呀~ 阅读(67) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/shu-de-zi-jie-gou-lcof/ /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Ri 阅读全文
posted @ 2022-06-28 10:54 知道了呀~ 阅读(81) 评论(0) 推荐(0) 编辑