- 博客(8)
- 收藏
- 关注
原创 LeetCode--767--medium--ReorganizeString
package com.app.main.LeetCode.string;import java.util.HashMap;import java.util.Map;/** * * 767 * * medium * * https://leetcode.com/problems/reorganize-string/ * * Given a string S, check...
2019-12-09 20:52:27 130
原创 LeetCode--621--medium--TaskScheduler
package com.app.main.LeetCode;/** * * 621 * * medium * * https://leetcode.com/problems/task-scheduler/ * * Given a char array representing tasks CPU need to do. It contains capital letters...
2019-12-09 20:49:21 87
原创 LeetCode--124--hard--BinaryTreeMaximumPathSum
package com.app.main.LeetCode.tree;import com.app.main.LeetCode.base.TreeNode;import java.util.HashMap;import java.util.Map;/** * * 124 * * hard * * Given a non-empty binary tree, find t...
2019-12-09 20:47:07 76
原创 LeetCode--429--medium--NaryTreeLevelorderTraversal
package com.app.main.LeetCode.tree;import com.app.main.LeetCode.prebase.Node;import java.util.ArrayList;import java.util.LinkedList;import java.util.List;import java.util.Queue;/** * * 429...
2019-12-09 20:46:20 97
原创 LeetCode--589--easy--NaryTreePreorderTraversal
package com.app.main.LeetCode.tree;import com.app.main.LeetCode.prebase.Node;import java.util.ArrayList;import java.util.List;import java.util.Stack;/** * 589 * * easy * * https://leetco...
2019-12-09 20:45:35 95
原创 LeetCode--590--easy--NaryTreePostorderTraversal
package com.app.main.LeetCode.tree;import com.app.main.LeetCode.prebase.Node;import java.util.ArrayList;import java.util.List;import java.util.Stack;/** * 590 * * easy * * https://leetco...
2019-12-09 20:45:01 94
原创 LeetCode--70--easy--ClimbingStairs
package com.app.main.LeetCode.dynamic;/** * * 70 * * easy * * You are climbing a stair case. It takes n steps to reach to the top. * * Each time you can either climb 1 or 2 steps. In how ma...
2019-12-09 20:44:25 91
原创 LeetCode--746--easy--MinCostClimbingStairs
package com.app.main.LeetCode.dynamic;/** * 746 * * easy * * https://leetcode.com/problems/min-cost-climbing-stairs/ * * On a staircase, the i-th step has some non-negative cost cost[i] assi...
2019-12-09 20:43:53 83
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人