码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
112. Path Sum - Easy
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N ...
分类:其他好文   时间:2018-12-30 10:40:31    阅读次数:196
数据库大师成长日记:巧用SQL语句,小技巧解决大问题!
朋友们,我们在写SQL脚本的时候,可能一些看起来不起眼的小问题、却让我们非常头疼。比如我们要写一个备份数据库的脚本,如果我们对服务器的硬盘分区和使用情况很了解,备份当然没有问题,但如果我们不知道服务器硬盘如何分区、每个分区还有多少空间可用的情况下,您写的备份语句可能就不好执行了。 下面,我就日常我们 ...
分类:数据库   时间:2018-12-30 02:37:47    阅读次数:187
移动云Mas发送普通短信和模板短信
//短信发送测试 import java.io.UnsupportedEncodingException; import org.apache.commons.codec.binary.Base64;import com.huazi.projects.entity.SubmitReq;public ...
分类:移动开发   时间:2018-12-29 13:42:29    阅读次数:1577
PAT 甲级 1020 Tree Traversals
https://pintia.cn/problem-sets/994805342720868352/problems/994805485033603072 Suppose that all the keys in a binary tree are distinct positive integer ...
分类:其他好文   时间:2018-12-29 11:57:06    阅读次数:175
107. Binary Tree Level Order Traversal II - Easy
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For ...
分类:其他好文   时间:2018-12-29 11:21:15    阅读次数:115
102. Binary Tree Level Order Traversal - Medium
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 ...
分类:其他好文   时间:2018-12-29 11:14:53    阅读次数:182
103. Binary Tree Zigzag Level Order Traversal - Medium
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 ...
分类:其他好文   时间:2018-12-29 11:09:36    阅读次数:121
LeetCode算法题-Binary Watch(Java实现)
这是悦乐书的第 216 次更新,第 229 篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第84题(顺位题号是401)。二进制手表顶部有4个LED,代表小时(0 11),底部的6个LED代表分钟(0 59)。每个LED代表一个零或一个,右侧的最低有效位。给定非负整数n表 ...
分类:编程语言   时间:2018-12-29 11:03:01    阅读次数:186
101. Symmetric Tree - Easy
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:其他好文   时间:2018-12-28 10:47:32    阅读次数:141
426. Convert Binary Search Tree to Sorted Doubly Linked List - Medium
Convert a BST to a sorted circular doubly-linked list in-place. Think of the left and right pointers as synonymous to the previous and next pointers i ...
分类:其他好文   时间:2018-12-27 10:23:29    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!