LeetCode Weekly Contest 31是LeetCode举办的第三十六场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-31/
题解列表:
LeetCode 575. Distribute Candies
LeetCode 572. Subtree of Another Tree
LeetCode Weekly Contest 31是LeetCode举办的第三十六场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-31/
题解列表:
LeetCode 575. Distribute Candies
LeetCode 572. Subtree of Another Tree
LeetCode 576. Out of Boundary Paths
There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in ...
LeetCode 573. Squirrel Simulation
There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and ...
LeetCode 572. Subtree of Another Tree
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists ...
LeetCode 575. Distribute Candies
Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these candies equally in ...