码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
python 在类中从一个函数中调用另一个函数中的变量
class bldy(): def one (self): a = 5 return a # return 返回到self def two(self): b = 10 return b def sum(self, a, b): # 你给我两个参数,我就执行下面的方法 c = a + b return ...
分类:编程语言   时间:2020-04-25 17:36:52    阅读次数:266
Unreal C++ pointer to incomplete class type is not allowed (踩坑)
感叹下Unity选择C 作为游戏开发语言非常明智,倒不是说运行速度有多快,代码质量有多高,但新手友好不容易踩坑浪费一些时间在代码编译上,虽然说蓝图连线小白,但我一个程序敲代码更顺手不用记那些框框名称,有IDE为我补全,再次吐槽下Unreal对IDE的智能补全支持不好。 C++各种认真写代码的格式我认 ...
分类:编程语言   时间:2020-04-25 00:43:02    阅读次数:183
数据框索引行
label1=['apple','orange','pear','banana'] label2=['one','two','three','four'] df=pd.DataFrame(np.arange(16).reshape(4,-1),index=label1,columns=label2) ...
分类:其他好文   时间:2020-04-24 01:53:43    阅读次数:109
Conway's Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells ...
分类:其他好文   时间:2020-04-23 18:55:58    阅读次数:76
CTFHUB 信息泄露
可用扫描工具尝试扫描(disearch、御剑等) 目录遍历 Method One 直接手动遍历 Method Two PHPINFO 搜索flag 要注意下ctfhub后面有个空格,要删掉 备份文件下载 网站源码 拿disearch扫一下 可以发现www.zip,访问下载 可以发现里面有三个文件 u ...
分类:其他好文   时间:2020-04-23 12:26:09    阅读次数:124
236.Lowest Common Ancestor of a Binary Tree
题目描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The ...
分类:其他好文   时间:2020-04-23 00:51:39    阅读次数:73
LeetCode:长度最小的子数组
长度最小的子数组 要求 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的连续子数组。如果不存在符合条件的连续子数组,返回 0。 思路 利用双指针,对比俩指针之间的和值与目标值的对比,并且记录下标差值,遍历结束后输出最小差值或0。 示例 ...
分类:编程语言   时间:2020-04-22 18:16:39    阅读次数:76
codeforces #634(div3) A-E题解
"A. Candies and Two Sisters" + 将糖果分为a,b两份,且a t; while(t ){ cin n; cout t; while(t ){ cin n a b; for(int i = 0; i book; int main(void){ ios::sync_with_ ...
分类:其他好文   时间:2020-04-22 13:42:51    阅读次数:85
目标检测轻量化压缩
目标检测轻量化压缩 目标检测难点概述 目标检测是计算机视觉中一个重要问题,在行人跟踪、车牌识别、无人驾驶等领域都具有重要的研究价值。近年来,随着深度学习对图像分类准确度的大幅度提高,基于深度学习的目标检测算法逐渐成为主流。 自 2014 年以来,目标检测框架分为two-stage 和 one-sta ...
分类:其他好文   时间:2020-04-22 09:44:54    阅读次数:61
1128 N Queens Puzzle
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:其他好文   时间:2020-04-21 23:40:06    阅读次数:92
13796条   上一页 1 ... 38 39 40 41 42 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!