题目描述:
LeetCode 501. Find Mode in Binary Tree
Given a binary tree with duplicates. You have to find all the mode(s) in given binary tree.
For example:
Given binary tree [1,null,2,2]
,
1 \ 2 / 2
return [2 ...
LeetCode 501. Find Mode in Binary Tree
Given a binary tree with duplicates. You have to find all the mode(s) in given binary tree.
For example:
Given binary tree [1,null,2,2]
,
1 \ 2 / 2
return [2 ...
LeetCode Weekly Contest 16B是LeetCode举办的第二十场正式周赛,共3道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-16b/
题解列表:
LeetCode 492. Construct the rectangle
LeetCode 483. Smallest Good Base
For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1.
Now given a string representing n, you should return the smallest good ...
LeetCode 486. Predict the Winner
Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on ...
LeetCode 492. Construct the rectangle
For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular ...