码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
leetcode1281
一次循环,同时记录乘积与加和。循环结束,两值再相减。 ...
分类:其他好文   时间:2019-12-08 12:44:15    阅读次数:79
MySQL快速生成100W条测试数据
https://blog.csdn.net/qq_16946803/article/details/81870174 1、生成思路利用mysql内存表插入速度快的特点,先利用函数和存储过程在内存表中生成数据,然后再从内存表插入普通表中 2、创建普通表及内存表普通表CREATE TABLE `vote ...
分类:数据库   时间:2019-12-08 12:23:44    阅读次数:100
DP单调队列--斜率优化P3195
题意:https://www.luogu.com.cn/problem/P3195 思路:https://www.luogu.com.cn/problemnew/solution/P3195 1 #define IOS ios_base::sync_with_stdio(0); cin.tie(0) ...
分类:其他好文   时间:2019-12-08 12:13:08    阅读次数:99
合并两个排序的链表(python)
题目描述 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 1 class Solution: 2 # 返回合并后列表 3 def Merge(self, pHead1, pHead2): 4 # write code here 5 dummy =p = ...
分类:编程语言   时间:2019-12-08 10:49:44    阅读次数:96
如何在阿里云的虚机 部署laravel项目
转发链接:https://jingyan.baidu.com/article/22a299b595425d9e19376aed.html laravel 版本:5.7 ...
分类:其他好文   时间:2019-12-08 10:49:27    阅读次数:147
2019 icpc 徐州 解题报告
A.Cat "题库链接" 给定区间[l,r],求一个最长子区间,使得区间异或和小于等于s,(结论)偶数和偶数后三个数的异或和等于0 参考博客 C. "题库链接" 给定区间[l,r],问区间素数个数是否大于区间长度的三分之一 暴力,区间大于100没必要去找了 F.The Answer to the U ...
分类:其他好文   时间:2019-12-08 10:30:22    阅读次数:332
【算法】浮点数多次运算精确值下降
#include<stdio.h> int main(){ double i=0; double k=10; for(int j=0;j<100;j++){ i+=0.1; } printf("%d\n",i!=k); printf("%lf\n",i); printf("%lf\n",k); re ...
分类:编程语言   时间:2019-12-08 01:01:25    阅读次数:84
[LC] 235. Lowest Common Ancestor of a Binary Search Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:其他好文   时间:2019-12-08 00:58:19    阅读次数:99
搜索枚举
搜索枚举,就是用搜索代替枚举,可以使算法时间复杂度降低,也可以帮助解决很多枚举(暴力)的算法无法解决(或很慢才能解决)的问题。 基本搜索枚举 有如下方程:$$a_1 x_1 + a_2 x_2 + a_3 x_3 + \cdots + a_n x_n = 0$$ ($2 \le n \le 10, ...
分类:其他好文   时间:2019-12-07 23:11:36    阅读次数:87
位运算
背景: ? 上课进度:Part1_递归及位运算 偶数判断 TRUE return 0; FALSE return 1; 2^n判断 TRUE return 0; FALSE return 1; ...
分类:其他好文   时间:2019-12-07 19:21:05    阅读次数:66
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!