LeetCode
weixin_31017205
这个作者很懒,什么都没留下…
展开
-
binary_tree_maxPathSum
题目描述Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / \ 2 3 Return6.import java...原创 2018-04-22 10:59:11 · 139 阅读 · 0 评论 -
链表插入排序
package LeetCode; //题目描述 //Sort a linked list using insertion sort. import java.util.*; public class insertionSortList { public static void main(String[] args) { ListNode a=new ListNode(2); Lis...原创 2018-04-22 17:01:16 · 89 阅读 · 0 评论 -
二叉树寻找最小深度
leetcod 题目描述 Given a binary tree, find its minimum depth.The minimum depth is thenumber of nodes along the shortest path from the root node down to thenearest leaf node. /** * Definiti原创 2018-04-19 22:57:33 · 151 阅读 · 0 评论 -
栈 计算四则运算
package LeetCode;// 题目描述//Evaluate the value of an arithmetic expression in Reverse Polish Notation. //Valid operators are+,-,*,/. Each operand may be an integer or another expression. //Some examples...原创 2018-04-21 21:42:48 · 353 阅读 · 0 评论