码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
merge-two-sorted-lists合并链表
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 合并两个有序链表 ...
分类:其他好文   时间:2018-09-12 01:12:07    阅读次数:166
leetcode 687.Longest Univalue Path
寻找最长的路径,那么会在左边或者右边或者是从左到跟然后再到右方的路径的。 ...
分类:其他好文   时间:2018-09-12 01:06:41    阅读次数:131
[ 9.11 ]CF每日一题系列—— 441C暴力模拟
Description: n * m 的地图,建设k个管道管道只能横竖走,且长度大于等于2,问你任意一种建设方法 Solution: 图里没有障碍,所以先把前k - 1个管道每个分2个长度,最后一个管道一连到底 Code: PS:今天时间没来的急,其实函数可以封装一下的,虽然都是暴力,但也得暴力的优 ...
分类:其他好文   时间:2018-09-11 22:31:29    阅读次数:120
SpringBoot 参数检查 Controller中检查参数是否合法
springboot 验证 默认使用的是hibernate validator ,不用额外增加引用包,springboot已经内置包含。 1)定义接收参数实体 2.定义controller ...
分类:编程语言   时间:2018-09-11 21:14:03    阅读次数:452
面向对象进阶
反射 实现通过字符串取出同名的变量 反射对象中的属性和方法 class Person: city = 'zhengzhou' def show_info(self): print('info ') @classmethod def show_city(cls): print('city ') # 使 ...
分类:其他好文   时间:2018-09-11 19:40:13    阅读次数:136
splay
#include using namespace std; const int maxn = 1000010; inline int qread(){ register int x = 0, ch = getchar(), flag = 0; while(!isdigit(ch)) flag = c... ...
分类:其他好文   时间:2018-09-11 19:38:45    阅读次数:142
PWN通用技巧
一、ROP中的gadget: 首先什么是gadget呢?gadget在英文中意为小配件,在构造ROP链时,主要是指一对pop|ret指令,其功能在于可以配置一个寄存器的值,并返回至指定地址。常常用来在64位pwn的寄存器传参中构造寄存器值,而ret可打到劫持目标函数的位置,也可以打到下一个gadge ...
分类:其他好文   时间:2018-09-11 18:07:16    阅读次数:421
AES加密
AES加密是我在做互联网广告时遇到的,像支付一般采用MD5加密、RSA加密。 public class AES { // 算法名称 final String KEY_ALGORITHM = "AES"; // 加解密算法/模式/填充方式 final String algorithmStr = "AE ...
分类:其他好文   时间:2018-09-11 14:20:45    阅读次数:173
HSmartWindowControl 之 摄像头实时显示( 使用 WPF )
1、添加Halcon控件,创建WPF项目在VS2013中创建一个WPF工程,然后添加halcon的控件和工具包,参见:HSmartWindowControl之安装篇 (Visual Studio 2013 & Halcon 18)在WPF工程中添加好HSmartWindowControlWPF控件后... ...
分类:Windows程序   时间:2018-09-11 14:04:25    阅读次数:1029
LeetCode系列(三)-3Sum Closest
给定一个包括 n 个整数的数组 nums 和 一个目标值 target。 找出 nums 中的三个整数,使得它们的和与 target 最接近。 返回这三个数的和。 假定每组输入只存在唯一答案。 示例: 例如,给定数组 nums = [-1,2,1,-4], 和 target = 1. 与 targe ...
分类:其他好文   时间:2018-09-11 14:02:34    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!