题目描述:
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it won't stop ...
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it won't stop ...
In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascending time series towards Ashe and the poisoning time ...
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 ...