查找算法 二分查找 标题 二分查找也称折半查找(Binary Search),它是一种效率较高的查找方法。但是,折半查找要求线性表必须采用顺序存储结构,而且表中元素按关键字有序排列。 过程 首先,假设表中元素是按升序排列,将表中间位置记录的关键字与查找关键字比较,如果两者相等,则查找成功;否则利用中 ...
分类:
编程语言 时间:
2020-02-03 13:53:15
阅读次数:
81
本随笔主要记录Launch的问题解决。 UE4打包遇到的问题层出不穷,有些比较急的时候,只能用Launch来将就一下。 但Launch也会遇到各种问题,这里解决一个记录一个。 1. Launch failed! Missing UE4Game binary. 具体问题如图: 缺失UE4二进制,如下图 ...
分类:
其他好文 时间:
2020-02-03 12:13:04
阅读次数:
235
89. Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non negative integer n representing ...
分类:
其他好文 时间:
2020-02-03 11:39:42
阅读次数:
59
ubunbu系统下google protobuf的安装 说明: 使用protobuf时需要安装两部分: 第一部分为\ .proto文件的编译器,它负责把定义的\ .proto文件生成对应的c++类的.h和.cpp文件; 第二部分是protobuf的c++动态库(由protobuf的源码编译生成),该 ...
分类:
其他好文 时间:
2020-02-03 10:04:36
阅读次数:
86
1 """ 2 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 3 For example, this binary tree [1,2,2,3,4,4,3] ...
分类:
其他好文 时间:
2020-02-02 23:54:27
阅读次数:
111
1 """ 2 Invert a binary tree. 3 Example: 4 Input: 5 4 6 / \ 7 2 7 8 / \ / \ 9 1 3 6 9 10 Output: 11 4 12 / \ 13 7 2 14 / \ / \ 15 9 6 3 1 16 """ 17 cl ...
分类:
其他好文 时间:
2020-02-02 23:46:38
阅读次数:
71
1 """ 2 For example, given 3 preorder = [3,9,20,15,7] 4 inorder = [9,3,15,20,7] 5 Return the following binary tree: 6 3 7 / \ 8 9 20 9 / \ 10 15 7 11 ...
分类:
其他好文 时间:
2020-02-02 23:34:00
阅读次数:
66
Link Cut Tree: #include<bits/stdc++.h> #define L(x) T[(x)].son[0] #define R(x) T[(x)].son[1] #define fa(x) T[(x)].fa using namespace std; const int N= ...
分类:
其他好文 时间:
2020-02-02 23:32:57
阅读次数:
68
数据表结构: 前端代码 axios.js import axios from 'axios'; import Qs from 'qs'; import {Message} from 'element-ui'; axios.defaults.baseURL = "/"; // 设置请求超时时间 axi ...
分类:
其他好文 时间:
2020-02-02 23:22:28
阅读次数:
97
1 """ 2 Given a binary tree, find its maximum depth. 3 The maximum depth is the number of nodes along the longest path from the root node down to the ...
分类:
其他好文 时间:
2020-02-02 23:16:12
阅读次数:
93