一、问题 https://leetcode-cn.com/problems/invert-binary-tree/ 二、GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/InvertTreeClass.cs Blog:htt ...
有四个剑客,他们很厉害 Find 查询命令,就是find 1 2 usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [ ...
分类:
系统相关 时间:
2020-01-06 09:37:59
阅读次数:
107
颠倒二进制位。题意是给一个数字,请你将其二进制的表达反转过来。例子, Input: 00000010100101000001111010011100 Output: 00111001011110000010100101000000 Explanation: The input binary stri ...
分类:
其他好文 时间:
2020-01-06 09:29:50
阅读次数:
71
Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2020-01-05 11:56:36
阅读次数:
74
SpringRedisTemplate针对这个Scan进行了封装,示例使用(针对最新库spring-data-redis-1.8.1.RELEASE):Set<Object> execute = redisTemplate.execute(new RedisCallback<Set<Object>> ...
分类:
编程语言 时间:
2020-01-05 11:49:46
阅读次数:
101
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 ...
分类:
其他好文 时间:
2020-01-05 11:37:20
阅读次数:
72
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 ...
分类:
其他好文 时间:
2020-01-05 10:02:41
阅读次数:
87
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-05 09:54:14
阅读次数:
60
1. Managing Ordered Sequences with bisect The bisect module offers two main functions bisect and insort that use the binary serach algorithm to quickl ...
分类:
其他好文 时间:
2020-01-05 09:27:35
阅读次数:
78
/** *543. Diameter of Binary Tree * https://leetcode.com/problems/diameter-of-binary-tree/description/ * */class TreeNode(var `val`: Int) { var left: ...
分类:
其他好文 时间:
2020-01-05 09:22:24
阅读次数:
78