题目要求: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally ident ...
分类:
其他好文 时间:
2017-06-25 12:44:48
阅读次数:
131
原题链接在这里:https://leetcode.com/problems/construct-string-from-binary-tree/#/description 题目: You need to construct a string consists of parenthesis and i ...
分类:
其他好文 时间:
2017-06-25 11:58:56
阅读次数:
180
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 ...
分类:
其他好文 时间:
2017-06-25 11:57:45
阅读次数:
228
present a file by binary character code,let the less characters can be presented simplier. ...
分类:
其他好文 时间:
2017-06-25 10:01:35
阅读次数:
126
进入在学习redis的时候,在文中看到了关于MessagePack的简介,发现非常有意思,于是就花了点时间大致了解了下。 MessagePack介绍: MessagePack is an efficient binary serialization format.It lets you exchan ...
分类:
其他好文 时间:
2017-06-25 00:21:41
阅读次数:
204
内表访问表达式是ABAP 7.4中引入的重要特性,可以使语句变得更加简洁、美观。那么它的读写性能怎么样呢?我进行了一点点测试。 读取 测试代码,使用三种方式读取同一内表,分别是read table关键字、表达式和read table...binary search: 结果: 如图,内表访问表达式在修 ...
分类:
其他好文 时间:
2017-06-24 17:15:20
阅读次数:
209
给定一个二叉树,找出所有路径中各节点相加总和等于给定目标值的路径。一个有效的路径,指的是从根节点到叶节点的路径。 样例:给定一个二叉树,和 目标值 = 5: 1 / \ 2 4 / \ 2 3 返回:[ [1, 2, 2], [1, 4]] ...
分类:
其他好文 时间:
2017-06-24 14:39:34
阅读次数:
143
题目描述 Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. Given p ...
分类:
其他好文 时间:
2017-06-23 23:53:48
阅读次数:
386
题目描述 Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. Given ...
分类:
其他好文 时间:
2017-06-23 23:50:46
阅读次数:
205
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. PS:将其化解为柱状图求最大体积的问题。先用动态规划的思路,将矩 ...
分类:
其他好文 时间:
2017-06-23 23:44:45
阅读次数:
160