升级AFN之后,SDK工程始终编译不通过找不到SDK.a 原因在SDK Target ->Build phases ->Link Binary With Libraries 多添加了SDK工程依赖的pod 库,删除所有的库之后编译就通过了 参考: https://www.jianshu.com/p/ ...
分类:
其他好文 时间:
2020-05-12 17:09:49
阅读次数:
331
算法简介 二分查找 二分查找也称折半查找(Binary Search),它是一种效率较高的查找方法。但是,折半查找要求线性表必须采用顺序存储结构,而且表中元素按关键字有序排列。 首先,假设表中元素是按升序排列,将表中间位置记录的关键字与查找关键字比较,如果两者相等,则查找成功;否则利用中间位置记录将 ...
分类:
编程语言 时间:
2020-05-11 23:43:48
阅读次数:
96
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the ...
分类:
其他好文 时间:
2020-05-11 12:57:57
阅读次数:
76
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2020-05-11 01:23:35
阅读次数:
61
(https://leetcode cn.com/problems/lowest common ancestor of a binary tree/) 自己写这一题墨迹那么长时间最后还是选了一个超级暴力的方法,不仅代码长,而且很慢..... 具体思路就是进行在对树进行后序遍历的时候,对每个点进行一次 ...
分类:
其他好文 时间:
2020-05-10 17:06:00
阅读次数:
59
二叉搜索树(英语:Binary Search Tree),也称有序二叉树(英语:ordered binary tree),排序二叉树(英语:sorted binary tree),是指一颗空树或者具有下列性质的二叉树:1、左子树上所有结点的值均小于它的根结点的值;2、右子树上所有结点的值均大于它的根 ...
分类:
其他好文 时间:
2020-05-10 16:55:47
阅读次数:
55
npm i -g npx npx create-nuxt-app 名字 选koa element-ui universal(ssr) axios eslint npm npm run dev npm i --update-binary npm run dev 脚手架创建之后会有一些问题,比如impo ...
分类:
其他好文 时间:
2020-05-09 20:45:42
阅读次数:
197
题目: 解答: 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : ...
分类:
其他好文 时间:
2020-05-09 16:40:04
阅读次数:
47
题目: 解答: 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : ...
分类:
其他好文 时间:
2020-05-09 13:08:27
阅读次数:
76
题目: 解答: 1 /** 2 * Definition for a binary tree node. 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNode(int ...
分类:
其他好文 时间:
2020-05-09 13:03:43
阅读次数:
59