fun hammingWeight(n: Int): Int { /** * 以下是完整的位运算符(只用语Int和Long) shl(bits) – 有符号左移(signed shift left,相当于Java的<<) shr(bits) – 有符号右移(signed shift right,相当 ...
分类:
其他好文 时间:
2020-06-24 00:47:49
阅读次数:
65
1.创建视图 语法:create view 视图名 as 查询语句 实例: -- 以上节课的关联查询为例 create view v_user_score as select a.id, a.name, b.math, b.english from student a inner join scor ...
分类:
其他好文 时间:
2020-06-23 21:43:21
阅读次数:
55
智能指针的循环引用 class Node { public: shared_ptr<Node> left; shared_ptr<Node> right; Node(int v) { this->value = v; cout << "Constructor" << endl; } ~Node() ...
分类:
其他好文 时间:
2020-06-23 13:13:43
阅读次数:
90
公共样式 .wrapper{ width: 300px; height: 300px; background-color: chartreuse; margin-right: 30px; display: inline-block; } .content{ width: 100px; height: ...
分类:
Web程序 时间:
2020-06-23 01:26:22
阅读次数:
87
# Series 以为,带标签数组 # DataFrame二维,Series容器 import string import pandas as pd import numpy as np # t = pd.Series(np.arange(10), index=list(string.ascii_u ...
分类:
其他好文 时间:
2020-06-22 23:16:15
阅读次数:
66
""" 归并排序 """ from math import floor merge_list = [11, 6743, 4656, 2321, 12, 54, 876, 232] # 合并两个数据,产生一个已经排序好的新的数组 def merge(left, right): # 设定临时数组 res ...
分类:
编程语言 时间:
2020-06-22 19:18:00
阅读次数:
61
常规的: 1、过早的过滤字段、只选用需要的列、要加分区 2、join 小表放左边 set hive.exec.reducers.max=200; set mapred.reduce.tasks= 200; 增大Reduce个数 set hive.groupby.mapaggr.checkinterv ...
分类:
数据库 时间:
2020-06-22 15:34:57
阅读次数:
75
Mysql的各种JOIN 1、CROSS JOIN = JOIN,使用方式: SELECT * FROM table1 CROSS JOIN table2 ; SELECT * FROM table1 JOIN table2 SELECT * FROM table1,table2 2、INNER J ...
分类:
数据库 时间:
2020-06-22 14:52:02
阅读次数:
60
盒子模型 边框 border-color border-width border-style 边框颜色 border-color 属性说明示例 border-top-color 上边框颜色 border-top-color:#369; border-right-color 右边框颜色 border- ...
分类:
其他好文 时间:
2020-06-22 13:14:44
阅读次数:
52
两个表连接:inner join要两个都有,right outer join是要右边的表有这个数据(on后面的),left outer join是要左边的有这个数据,full outer join只要某一张有就可以 leetcode 175 无难度,连接俩表,要左边数据的都要 用left outer ...
分类:
数据库 时间:
2020-06-21 22:58:36
阅读次数:
68