码迷,mamicode.com
首页 >  
搜索关键字:there are two rows o    ( 14173个结果
【leetcode】二进制矩阵中的特殊位置
int numSpecial(int** mat, int matSize, int* matColSize){ int i,j,k,n,sum=0; int rows[100]={0}; int cols[100]={0}; for(i=0; i<matSize; i++) { for(j=0; ...
分类:其他好文   时间:2020-11-13 13:09:28    阅读次数:9
MySQL查看数据库表容量大小
1.查看所有数据库容量大小 select table_schema as 'smartxs' ,sum(table_rows) as '记录数' ,sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)' ,sum(truncate(index_le ...
分类:数据库   时间:2020-11-12 13:50:57    阅读次数:57
JavaSE---Concurrency
1、Processes and Threads In concurrent programming, there are two basic units of execution: processes and threads.(并发程序中,有2个基本的执行单位:进程、线程) 1.1、Processe ...
分类:编程语言   时间:2020-11-12 13:23:54    阅读次数:6
回调函数的理解
先看两个例子,比较不同: 例一(有回调函数) #include <iostream> using namespace std; void foo_one() { cout<<"foo_one"<<endl; } void foo_two() { cout<<"foo_two"<<endl; } ty ...
分类:其他好文   时间:2020-11-11 16:29:50    阅读次数:8
20.11.8 leetcode 1,122
#1:在数组中找两个数,使其和为target 链接:https://leetcode-cn.com/problems/two-sum/ 暴力就是n^2,可以用map来做,这里介绍一下map.count(tmp)函数,是搜索key的值,map里存在值为tmp的key就返回1,否则是0 #122:给定一 ...
分类:其他好文   时间:2020-11-08 17:59:16    阅读次数:25
binlog记录SQL执行时间吗,准不准,时间是否包含锁等待时间
讨论:binlog记录SQL执行时间吗,准不准,时间是否包含锁等待时间 MySQL版本号: Server version: 5.7.29-log MySQL Community Server (GPL) 测试环境如下: mysql> drop table t1; Query OK, 0 rows a ...
分类:数据库   时间:2020-11-08 17:13:49    阅读次数:26
enumerate()枚举函数
# 作用就是:将可迭代对象中的元素和索引同时取出 seq = ['one', 'two', 'three'] for i, element in enumerate(seq): print('index:element {}: {}'.format(i, element)) print('\n') ...
分类:编程语言   时间:2020-11-08 16:38:34    阅读次数:16
【译】Ringbahn的两个内存Bug
原文链接:https://without.boats/blog/two-memory-bugs-from-ringbahn/ 原文标题:Two Memory Bugs From Ringbahn 公众号:Rust 碎碎念 翻译: Praying 在实现ringbahn[1]的时候,我引入了至少两个 ...
分类:其他好文   时间:2020-11-04 17:55:28    阅读次数:13
两根指针
两根指针,英文为two pointers ,所以又被称为双P算法。 同向双指针问题 1.window sum问题 例给定数组[1, 2, 7, 8, 5],给定一个长度为k的窗口,求此窗口内的数据元素的和。比如1 + 2 + 7 = 10, 2 + 7 + 8 = 17, 7 + 8 + 5 = 2 ...
分类:其他好文   时间:2020-11-02 09:54:07    阅读次数:33
GridControl中事件
gridView1_CellValueChanged事件在 SetRowCellValue后触发 或者编辑修改后触发 this.gridView1.SetRowCellValue(rowindex, "sqty", sumdt.Rows[0]["quantity"].ToString()); ...
分类:其他好文   时间:2020-11-02 09:51:48    阅读次数:14
14173条   上一页 1 ... 9 10 11 12 13 ... 1418 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!