Problem A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and returni ...
分类:
其他好文 时间:
2020-03-08 13:45:34
阅读次数:
47
题目标签:Sort 利用两个指针,在偶数位置上找到第一个奇数;在奇数位置上找到第一个偶数,然后互相转换数字。 具体看code。 Java Solution: Runtime: 2ms, faster than 99.61% Memory Usage: 42.9MB, less than 29.63% ...
分类:
编程语言 时间:
2020-03-08 09:58:56
阅读次数:
72
从这一关开始我们开始进入到post注入的世界了,什么是post呢?就是数据从客户端提交到服务器端,例如我们在登录过程中,输入用户名和密码,用户名和密码以表单的形式提交,提交到服务器后服务器再进行验证。这就是一次post的过程的。 less 11: 这里我们还是尝试一下get注入里常用的: 执行:ad ...
分类:
数据库 时间:
2020-03-06 22:09:35
阅读次数:
91
一、简介 gulp是前端开发过程中对代码进行构建的工具,是自动化项目的构建利器; gulp是基于Nodejs的自动任务运行器,她能自动化地完成 javascript/coffee/sass/less/html/image/css 等文件的的测试、检查、合并、压缩、格式化、浏览器自动刷新、部署文件生成 ...
分类:
其他好文 时间:
2020-03-05 22:12:27
阅读次数:
71
1.在项目中安装@angular-builders npm i -D @angular-builders/custom-webpack 2.在你的项目根目录创建 webpack.config.js 文件 (和angular.json 同级) module.exports = { module: { ...
分类:
Web程序 时间:
2020-03-05 15:09:33
阅读次数:
418
内核版本:Linux-4.14.111 所在路径:drivers/net/wireless/mediatek/mt7601u ieee80211_stop_queue 等相关内容暂未理解透彻,待更新。 或许再加入与 RT3070 驱动的一些对比。 ...
分类:
其他好文 时间:
2020-03-05 00:58:41
阅读次数:
123
异常信息: org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.su ...
分类:
其他好文 时间:
2020-03-04 12:30:33
阅读次数:
62
Problem Description Given a string containing only 'A' - 'Z', we could encode it using the following method:1. Each sub-string containing k same chara ...
分类:
其他好文 时间:
2020-03-04 00:28:32
阅读次数:
76
在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。 解决方法: 一句 ...
分类:
Web程序 时间:
2020-03-03 22:45:16
阅读次数:
107
1.查看一下php文件: check_addslashes()会在单引号前加一个\ 例如:I'm hacker 传入addslashes(),得到:I\'m hacker 本题想以此阻止sql注入语句闭合,但是可以使用宽字节绕过: 原理大概来说就是,一个双字节组成的字符,比如一个汉字‘我’的utf8 ...
分类:
其他好文 时间:
2020-03-03 19:14:12
阅读次数:
91