链接:https://ac.nowcoder.com/acm/contest/908/C 题意: Luffy once saw a particularly delicious food, but he didn't have the money, so he asked Nami for mone ...
分类:
其他好文 时间:
2019-06-01 19:11:03
阅读次数:
115
Source: PAT A1127 ZigZagging on a Tree (30 分) Description: Suppose that all the keys in a binary tree are distinct positive integers. A unique binary ...
分类:
其他好文 时间:
2019-05-31 23:14:44
阅读次数:
80
描述: 给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现的下标(从0开 始),如果target不存在于数组中,返回-1。 样例 : 输入: [1, 2, 3, 3, 4, 5, 10], 3 输出: 2 样例解释: 3 第一次出现在第2 ...
分类:
其他好文 时间:
2019-05-31 21:19:57
阅读次数:
121
二进制文件安装 ,官网给定具体安装步骤: https://dev.mysql.com/doc/refman/8.0/en/binary-installation.html 然后就是设置环境变量 export PATH = $PATH:/usr/local/mysql/bin 设置密码: set pa ...
分类:
数据库 时间:
2019-05-31 16:49:42
阅读次数:
158
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: 题意 给定一个01矩阵,找出其中全由1构成的最 ...
分类:
其他好文 时间:
2019-05-31 16:33:58
阅读次数:
91
Given a binary tree, determine if it is a valid binary search tree (BST). Given a binary tree, determine if it is a valid binary search tree (BST). As ...
分类:
其他好文 时间:
2019-05-31 11:59:32
阅读次数:
101
Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Given n, how many structurally unique BST's (binary searc ...
分类:
其他好文 时间:
2019-05-30 22:08:52
阅读次数:
113
problem 543. Diameter of Binary Tree 参考 1. Leetcode_easy_543. Diameter of Binary Tree; 完 ...
分类:
其他好文 时间:
2019-05-29 14:33:24
阅读次数:
129
一、题目 1、审题 2、分析 求一棵二叉树中两个节点最远的距离。 二、解答 ① 采用全局变量 max 记录两个节点之间最远的距离 ...
分类:
其他好文 时间:
2019-05-28 22:51:11
阅读次数:
225
Binary to Decimal in C++ To convert binary to decimal in C++ Programming, you have to ask to the user to enter any number in binary to convert it into ...
分类:
其他好文 时间:
2019-05-28 17:09:57
阅读次数:
110