- 博客(6)
- 收藏
- 关注
原创 【leetcode每日刷题】【dp】877. Stone Game
Alex and Lee play a game with piles of stones. There are an even number ofpilesarranged in a row, and each pile has a positive integer number of stonespiles[i].The objective of the game is to en...
2019-06-23 15:29:43 256
原创 【leetcode每日刷题】【广度遍历】690. Employee Importance
You are given a data structure of employee information, which includes the employee'sunique id, hisimportance valueand hisdirectsubordinates' id.For example, employee 1 is the leader of employe...
2019-06-23 14:20:22 99
原创 【leetcode每日刷题】110. Balanced Binary Tree
平衡二叉树1271113FavoriteShareGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as:a binary tree in which the depth of the two subt...
2019-06-22 16:41:21 100
原创 【leetcode每日刷题】103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).For example:Given binary tre...
2019-06-22 14:32:43 145
原创 【leetcode每日刷题】【层次遍历】102. Binary Tree Level Order Traversal
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree[3,9,20,null,null,15,7], 3 / \ 9 20 ...
2019-06-22 13:50:07 278
原创 【leetcode每日刷题】【模拟】134. Gas Station
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[i]of gas to travel from stationito its ...
2019-06-02 14:11:42 79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人