题目 Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exampl ...
分类:
其他好文 时间:
2020-07-10 20:58:33
阅读次数:
56
1、每4000条插入一次 for (int i = 0; i < dt.Rows.Count; i++) { IsTBProductForStockInfo model = new IsTBProductForStockInfo(); model.SyncSkuCode = dt.Rows[i][" ...
分类:
数据库 时间:
2020-07-10 17:07:37
阅读次数:
65
LC148 two-sum 题意:数组中找出两个加起来等于目标值的数 题解:unordered存值对应下标,注意相同数的特判 LC147 median-of-two-sorted-arrays 题意:两个有序数组中位数 题解:Kth(A,m,B,n,k),若m>n交换,pa=min(k/2,m),p ...
分类:
其他好文 时间:
2020-07-10 15:23:31
阅读次数:
60
误删下所有的用户 # 删除一个用户(::1 是本机 ipv6 地址) mysql> drop user root@'::1'; Query OK, 0 rows affected (0.00 sec) # 删除所有用户 mysql> delete from mysql.user where 1=1; ...
分类:
数据库 时间:
2020-07-10 13:25:46
阅读次数:
69
mybatis-plus update 版本:3.0+ 根据id更新 User user = new User(); user.setUserId(1); user.setAge(29); user.updateById(); or Integer rows = userMapper.updateB ...
分类:
其他好文 时间:
2020-07-10 11:39:57
阅读次数:
559
package LeetCode_680 /** * 680. Valid Palindrome II * https://leetcode.com/problems/delete-operation-for-two-strings/description/ * * Given two words ...
分类:
其他好文 时间:
2020-07-10 09:29:42
阅读次数:
68
#Code-Output File-Two Way July 9, 2020 9:25 PM ##1.使用ofstream 输出 #include <fstream> SYSTEMTIME st; GetLocalTime(&st); CString strTime; strTime.Format( ...
分类:
其他好文 时间:
2020-07-09 22:11:03
阅读次数:
73
Just curious where you saw error code 2 is incorrect usage of command? The documentation indicates that it's one of the following: All or some rows re ...
分类:
数据库 时间:
2020-07-09 15:00:59
阅读次数:
67
一、椒盐噪声 void salt(Mat& img, int num) { if (img.data == NULL) return; srand(time(NULL)); int i, j; for (int k = 0; k < num; k++) { i = rand() % img.rows ...
分类:
其他好文 时间:
2020-07-09 12:30:12
阅读次数:
72
如果只有一次询问,可以分治,每次考虑跨过中点的情况。预处理左半边后缀or和,右半边前缀or和,然后用two pointers求。发现前、后缀or和只会变化O(log a)次。用线段树维护,记录每个区间的答案,以及前、后缀or和(这O(log a)个段)。push_up和查询时,还用two point... ...
分类:
其他好文 时间:
2020-07-08 23:21:12
阅读次数:
78