乘积最大子数组 描述 给定一个整数数组 nums ,找出一个序列中乘积最大的连续子数组(该序列至少包含一个数)。 示例 1: 输入: [2,3,-2,4]输出: 6解释: 子数组 [2,3] 有最大乘积 6。示例 2: 输入: [-2,0,-1]输出: 0解释: 结果不能为 2, 因为 [-2,-1 ...
分类:
编程语言 时间:
2020-01-09 19:02:28
阅读次数:
105
z子查询就是将一个查询(子查询)的结果作为另一个查询(主查询)的数据来源或判断条件的查询。常见的子查询有WHERE子查询,HAVING子查询,FROM子查询,SELECT子查询,EXISTS子查询,子查询要使用小括号(); WHERE子查询 在WHERE子句中进行使用查询 SELECT * FROM ...
分类:
数据库 时间:
2020-01-09 10:39:05
阅读次数:
102
#include <bits/stdc++.h> #include<math.h> #include <string> using namespace std; const int MAX_LEN = 100005; int main(){ int temp[10]; for(int i =0;i< ...
分类:
编程语言 时间:
2020-01-08 23:11:03
阅读次数:
124
背景 互联网的金融和电商行业,最关注数据库事务。 |业务核心|说明| | | | |金融行业 金融产品金额|不允许发生错误| |电商行业 商品交易金额,商品库存|不允许发生错误| 面临的难点: 高并发下保证: 数据一致性,高性能; spring对事物的处理: 采用AOP技术提供事务支持,申明式事务, ...
分类:
编程语言 时间:
2020-01-08 20:36:15
阅读次数:
79
<template> <div class="first-app"> {{msg}} <br/> {{msg1}} <Confin text='注册' @message="getMeaasge"></Confin> </div> </template> <script> import Confin ... ...
分类:
其他好文 时间:
2020-01-08 18:56:53
阅读次数:
113
1.添加删除固定路由规则 添加 route add 15.0.32.0(要去访问的网段) mask 255.255.255.0 -p 15.50.112.93 删除 route delete 15.0.32.0 mask 255.255.255.0 -p 15.50.112.93 查看路由规则 ro ...
插入排序 public void test3() { int i,j,temp; for(i=1;i<array.length;i++) { temp=array[i]; for(j=i-1;j>=0;j--) { if(temp>array[j]) { break; }else { array[j ...
分类:
编程语言 时间:
2020-01-08 12:32:37
阅读次数:
81
ARC代码: NSObject *p = [NSObject new]; 编译完的MRC代码: NSObject *temp = [NSObject new]; p = [temp retain]; [temp release]; ARC代码: __weak NSObject *p = [NSObj ...
分类:
其他好文 时间:
2020-01-08 00:43:37
阅读次数:
64
1 /* 2 3.一个5位数,判断它是不是回文数。即12321是回文数,个位与万位相同,十位与千位相同。(精) 3 4.从键盘接收一个字符,如果是小写字母,就输出对应的大写字母。如果是大写字母,输出对应的小写字母。 4 */ 5 #define _CRT_SECURE_NO_WARNINGS 6 # ...
分类:
其他好文 时间:
2020-01-07 21:29:38
阅读次数:
114
render原理: def ab_render(request): temp = Template("<h1>{{ user_dict }}{{ user_dict.username }}{{ user_dict.password }}</h1>") user_dict = Context({'us ...
分类:
其他好文 时间:
2020-01-07 20:07:49
阅读次数:
83