11 2019 档案

摘要:There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either 阅读全文
posted @ 2019-11-23 21:13 滚烫的青春 阅读(765) 评论(0) 推荐(0)
摘要:1 all previleges语法错误 2 3 二、数据库的安全性控制 4 1、存取控制 5 ①自主存取控制(DAC)(C2级) 6 [例1] 把查询Student表权限授给用户U1 7 grant select 8 on student 9 to u1 10 [例2] 把对Student表和Co 阅读全文
posted @ 2019-11-23 17:20 滚烫的青春 阅读(229) 评论(0) 推荐(0)
摘要:1 --外连接操作以指定表为连接主体,将主体表中不满足连接条件的元组一并输出 2 --select * from pd left/right/full join pds on pd.id = pds.dish_id 3 插入操作 4 5 1、插入元组 6 略 7 2、插入子查询结果 8 --[例4] 阅读全文
posted @ 2019-11-21 16:54 滚烫的青春 阅读(837) 评论(0) 推荐(0)
摘要:A. 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 int a[maxn], b[maxn]; 5 6 int main() 7 { 8 int t; cin >> t; 9 int 阅读全文
posted @ 2019-11-17 20:56 滚烫的青春 阅读(161) 评论(0) 推荐(0)
摘要:1 --定义模式 2 create schema s_t authorization u1 3 --删除模式 4 drop schema s_t cascade 5 --创建数据库 6 create database s_t 7 on primary 8 ( 9 name = 'stu', 10 f 阅读全文
posted @ 2019-11-17 12:27 滚烫的青春 阅读(146) 评论(0) 推荐(0)
摘要:The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) i 阅读全文
posted @ 2019-11-15 17:11 滚烫的青春 阅读(192) 评论(0) 推荐(0)
摘要:1 --游标知识点 2 --1、 在SELECT 语句中使用DISTINCT、 GROUP BY、 HAVING UNION 语句时, 游标将自动设定INSENSITIVE 选项。 3 --2、SCROLL 表明所有的提取操作(如FIRST、 LAST、 PRIOR、 NEXT、 RELATIVE、 阅读全文
posted @ 2019-11-15 09:44 滚烫的青春 阅读(312) 评论(0) 推荐(0)
摘要:1151 LCA in a Binary Tree (30 分) The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descenda 阅读全文
posted @ 2019-11-15 00:08 滚烫的青春 阅读(331) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-14 16:33 滚烫的青春 阅读(130) 评论(0) 推荐(0)
摘要:1 --例8.2.1创建自定义标量函数TOTAL()用来计算任意两数之和。 2 create function total(@a int, @b int) 3 returns int 4 begin 5 declare @c int 6 select @c = @a + @b 7 return @c 阅读全文
posted @ 2019-11-11 12:31 滚烫的青春 阅读(521) 评论(0) 推荐(0)
摘要:1、 numpy求均值、方差、标准差 1 import numpy as np 2 3 arr = [1,2,3,4,5,6] 4 #求均值 5 arr_mean = np.mean(arr) 6 #求方差 7 arr_var = np.var(arr) 8 #求标准差 9 arr_std = np 阅读全文
posted @ 2019-11-11 00:19 滚烫的青春 阅读(180) 评论(0) 推荐(0)
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2019-11-08 20:25 滚烫的青春 阅读(181) 评论(0) 推荐(0)
摘要:题目:3 * 3拼图游戏, 输入一种状态,问你是不是能还原成最终状态。 分析: 1、从最终状态开始逆向bfs 2、通过数组记录状态,可以用map映射,也可以用康托展开压缩。 代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const i 阅读全文
posted @ 2019-11-08 00:23 滚烫的青春 阅读(204) 评论(0) 推荐(0)
摘要:触发器 --1、使用DDL触发器limited来防止数据库中的任一表被修改或删除(自定义错误提示)。????create trigger limitedon databasefor updateasprint'不允许删除操作!'rollback--2、为学生表创建一个简单DML触发器,在插入和修改数 阅读全文
posted @ 2019-11-05 21:38 滚烫的青春 阅读(295) 评论(0) 推荐(0)
摘要:题意 q次询问,每次询问给你长度为n的排列,然后你每次可以选择一个位置i和i+1的数字进行交换。但是每个位置只能交换一次,问你反转若干次后,这个排列最小是多少? 分析:模拟题,直接代码。(一开始读错题了,外加思路不清晰) 代码: 1 #include <bits/stdc++.h> 2 using 阅读全文
posted @ 2019-11-05 17:37 滚烫的青春 阅读(482) 评论(0) 推荐(0)
摘要:1 # coding: utf-8 2 3 # In[3]: 4 5 6 import numpy as np 7 import matplotlib.pyplot as plt 8 9 def estimate_coefficients(x, y): 10 # size of the dataset OR number of observations/points 11 n = np.size( 阅读全文
posted @ 2019-11-04 00:36 滚烫的青春 阅读(321) 评论(0) 推荐(0)