![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Medium
YuanTheCoder
转码之路
展开
-
Leetcode 11. Container With Most Water , Java解法
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis at (i,ai) and (i, 0). Find two...原创 2019-07-13 08:59:06 · 150 阅读 · 0 评论 -
Leetcode 250. Count Univalue Subtrees 谷歌面试, Java解法详解
这是一道谷歌会考的题目 Given a binary tree, count the number of uni-value subtrees. A Uni-value subtree means all nodes of the subtree have the same value. Example : Input: root = [5,1,5,5,5,null,5] ...原创 2019-08-22 10:19:58 · 335 阅读 · 0 评论