CHARINDEX()和PATINDEX() 1 SELECT CHARINDEX('c','aabbccdd') 1 SELECT CHARINDEX('c','aabbccdd',6) 数字是从第几位往后查询,其中这里的字符串貌似是没有‘0’位。 SELECT *,CHARINDEX('单',n ...
分类:
数据库 时间:
2020-07-19 18:06:25
阅读次数:
102
链接:https://leetcode-cn.com/problems/same-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode ...
分类:
其他好文 时间:
2020-07-19 11:33:58
阅读次数:
44
关于国际化 一个项目发展到一定的环境或者一开始就是为多国打造的,就需要考虑国际化了。简单来说,就是一套页面,多套语言。 前不久做了一个国际化的项目,基于react和antd,里面用到了国际化,使用方式也很简单 import zhCN from 'antd/lib/locale-provider/zh ...
分类:
其他好文 时间:
2020-07-19 00:49:11
阅读次数:
91
split() 方法用于把一个字符串分割成字符串数组。 reverse() 方法用于颠倒数组中元素的顺序。 join() 方法用于把数组中的所有元素放入一个字符串。 ...
分类:
其他好文 时间:
2020-07-19 00:41:27
阅读次数:
110
root@ubuntu:/home/ubuntu# ps -elf | grep r3 0 S root 22962 22933 0 80 0 - 1367 select 19:41 pts/10 00:00:00 bash --norc -mis mininet:mgntr3 4 S root 2 ...
分类:
Web程序 时间:
2020-07-18 22:57:12
阅读次数:
144
例子 1 border-radius:2em; 等价于: border-top-left-radius:2em; border-top-right-radius:2em; border-bottom-right-radius:2em; border-bottom-left-radius:2em; 例 ...
分类:
其他好文 时间:
2020-07-18 22:30:05
阅读次数:
94
中序。 刚拿到题目时,第一想法是递归,但是搞错了二叉搜索树成立的条件。 我以为的条件是:左侧树为二叉搜索树,右侧树为二叉搜索树,且root.right>root>root.left,然后递归。 但是显然这不对,满足以上条件后,root.right.left可能比root要小。 先说正确的递归解法:正 ...
分类:
其他好文 时间:
2020-07-18 22:03:27
阅读次数:
71
题解:层次遍历的基础上加个计数器,偶数层得到的结果反转一下 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeN ...
分类:
其他好文 时间:
2020-07-18 21:52:24
阅读次数:
59
解题:利用队列先进先出来实现层次遍历 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) ...
分类:
其他好文 时间:
2020-07-18 19:52:44
阅读次数:
68
<head> <style> .adModal{ position:fixed; background: black; top: 0; right: 0; bottom: 0; left: 0; z-index: 998; opacity: 0.4; } .tdModal{ position:fix ...
分类:
其他好文 时间:
2020-07-18 19:50:38
阅读次数:
67