#include<bits/stdc++.h> using namespace std; int n,ans=0; int a[105],ls[105],rs[105],kkk[105];//a:lie,ls:left scope,rs:right scope(原谅我的工地英语),kkk是行(kkk ...
分类:
其他好文 时间:
2020-05-26 01:22:38
阅读次数:
93
说明 str_pad ( string $input , int $pad_length [, string $pad_string = " " [, int $pad_type = STR_PAD_RIGHT ]] ) : string 该函数返回 input 被从左端、右端或者同时两端被填充到制 ...
分类:
其他好文 时间:
2020-05-25 19:20:22
阅读次数:
62
题目:输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构) 代码: 1 /* 2 struct TreeNode { 3 int val; 4 struct TreeNode *left; 5 struct TreeNode *right; 6 TreeNode ...
分类:
其他好文 时间:
2020-05-24 13:32:58
阅读次数:
44
题目:操作给定的二叉树,将其变换为源二叉树的镜像。 代码: 1 /* 2 struct TreeNode { 3 int val; 4 struct TreeNode *left; 5 struct TreeNode *right; 6 TreeNode(int x) : 7 val(x), lef ...
分类:
其他好文 时间:
2020-05-24 13:31:21
阅读次数:
51
地址:https://leetcode-cn.com/problems/binode-lcci/ <?php /** 二叉树数据结构TreeNode可用来表示单向链表(其中left置空,right为下一个链表节点)。实现一个方法,把二叉搜索树转换为单向链表,要求值的顺序保持不变,转换操作应是原址的, ...
分类:
其他好文 时间:
2020-05-24 11:36:44
阅读次数:
57
内连接,外连接:左连接(left join),右连接(right join),完全外连接(full join) ...
分类:
数据库 时间:
2020-05-24 09:19:02
阅读次数:
96
Clifford code Clifford group是什么? 简单的公式来表达,就是 $Cl_{n}=\left\{U: U P_{n} U^{\dagger} \in P_{n}\right\}$ 。 用语言来描述,就是对一个泡利施加一个U操作,然后还是一个泡利。 首先,所有的泡利都属于$Cl ...
分类:
其他好文 时间:
2020-05-23 16:22:02
阅读次数:
97
问题: 给定数组,切分为left和right,使得left的所有元素<=right的所有元素,返回left的长度 Example 1: Input: [5,0,3,8,6] Output: 3 Explanation: left = [5,0,3], right = [8,6] Example 2: ...
分类:
其他好文 时间:
2020-05-23 13:20:11
阅读次数:
49
.wx-swiper-dots{position:relative;left: unset!important;right: 0;} .wx-swiper-dots.wx-swiper-dots-horizontal{ margin-bottom: -5rpx; } ...
分类:
微信 时间:
2020-05-23 09:50:46
阅读次数:
648
和普通的修改密码不太一样 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy ...
分类:
数据库 时间:
2020-05-22 21:15:47
阅读次数:
210