搜索
文章平均质量分 74
XiaoM将故事
决定人生高度的从来都不是做事的完美程度,而是做事的速度.
展开
-
Uva 548
import java.util.Scanner; public class Main{ static int maxv = 10000 + 10; static int[] inOrder = new int[maxv]; static int[] postOrder = new int[maxv]; static int[] lch = new int[maxv]; static原创 2017-08-14 16:14:10 · 258 阅读 · 0 评论 -
Uva 10603 Fill
问题描述: 设3个杯子的容量分别为a,b,c最初只有第3个杯子装满了c升水,其他两个杯子为空。最少需要倒多少升水才能让某一个杯子中的水有d升?如果无法做到恰好d升,就让某一个杯子里的水是d1升其中d1 import java.util.Comparator; import java.util.PriorityQueue; import java.util.Scanner; pu原创 2017-09-07 12:01:45 · 210 阅读 · 0 评论 -
LeetCode 103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary原创 2017-09-07 18:33:10 · 158 阅读 · 0 评论