07 2019 档案

[Leetcode] 1120. Maximum Average Subtree
摘要:Given the root of a binary tree, find the maximum average value of any subtree of that tree. (A subtree of a tree is any node of that tree plus all it 阅读全文

posted @ 2019-07-15 00:03 seako 阅读(713) 评论(0) 推荐(0)

[Leetcode] 118. Pascal's Triangle
摘要:Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers 阅读全文

posted @ 2019-07-14 23:37 seako 阅读(141) 评论(0) 推荐(0)

[Leetcode] 652. Find Duplicate Subtrees
摘要:Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them. Two 阅读全文

posted @ 2019-07-14 23:24 seako 阅读(103) 评论(0) 推荐(0)

[Codeforces] Alex and a Rhombus
摘要:A. Alex and a Rhombus time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output While playing with 阅读全文

posted @ 2019-07-04 00:09 seako 阅读(257) 评论(0) 推荐(0)