1 """ 2 We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1. 3 Return the same tree where eve ...
分类:
其他好文 时间:
2020-02-13 22:59:44
阅读次数:
82
1 """ 2 Given a binary tree, return the inorder traversal of its nodes' values. 3 Example: 4 Input: [1,null,2,3] 5 1 6 \ 7 2 8 / 9 3 10 Output: [1,3,2 ...
分类:
其他好文 时间:
2020-02-13 22:54:06
阅读次数:
53
1 """ 2 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 give ...
分类:
其他好文 时间:
2020-02-13 22:44:08
阅读次数:
62
1 """ 2 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. 3 An example is the root-to-leaf path 1- ...
分类:
其他好文 时间:
2020-02-13 22:42:21
阅读次数:
82
1 """ 2 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. 3 According to the definition of LCA on Wikipedia: ...
分类:
其他好文 时间:
2020-02-13 22:33:56
阅读次数:
67
1. Linux文件与目录结构 Linux系统以文件的形式来管理设备,因此Linux系统中一切皆文件。 Linux的目录结构为树状结构,有且只有一个根目录/,根目录下的目录结构如图1: 图1 Linux文件系统目录结构 根目录下的子目录都存放着特定的内容: | 目录 | 描述 | | | | | / ...
分类:
其他好文 时间:
2020-02-13 21:19:20
阅读次数:
124
计算机使用的是二进制,计算机只认识0和1 我们日常使用的是十进制,满十进一 既然计算机只认识0和1,那么我们日常使用的计算机时如何操作呢 这就需要一套二进制和十进制互相转换的公式了 首先说十进制转换二进制,就是不断的用十进制的数字除以2,直到十进制的数字最后为0时,将余数倒序排列就是十进制的二进制表 ...
分类:
编程语言 时间:
2020-02-13 13:00:22
阅读次数:
83
其他知识点,会在后续学习过程中再做完善。 Docker安装成功后,查看安装的Docker的相关信息。 Docker命令: docker version:显示 Docker 版本信息。 [root@Docker docker]# docker version Client: Docker Engine ...
分类:
其他好文 时间:
2020-02-13 09:41:19
阅读次数:
92
二分憨批一号! 今天写尼玛的二分竟然wa了好几发 易发生错误: 1,右边界不够。(一开始1e18一直wa,2e18过的) 2,逻辑错误。 今日憨批++ ...
分类:
其他好文 时间:
2020-02-13 09:30:18
阅读次数:
54