码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
[LeetCode], solution, non-code implementation
42. Trapping Rain Water we need to find how many waters can each block[i] trap. So we need to find the left peak from block_0 to block[i-1] and find t ...
分类:其他好文   时间:2020-01-23 09:32:11    阅读次数:89
DC1(msf drupal7+suid-find提权)
这边我们靶机是仅主机模式,IP是192.168.56.101,,直接上msf拿到shell, 不过payload要改一下 改成php/meterperter/bind_tcp 拿到shell了 ,采用交互式 python -c "import pty;pty.spawn('/bin/bash')" ...
分类:其他好文   时间:2020-01-23 09:18:43    阅读次数:78
508. Most Frequent Subtree Sum
Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values ...
分类:其他好文   时间:2020-01-23 09:17:11    阅读次数:93
C - Find The Multiple
说实话,开始一脸懵,主要是不知道怎样往最短路径上想象。。。 【题意】:在一个仅有0,1所组成的数字中找n的最小倍数(所以开头为0当然是不行的),不超过200位(但我做题是没管,也AC了) 【思路】:因为要找n的倍数,当然从最小的一直增大到想要的数字;对于增大的数有两种情况,*10以及*10+1;所以 ...
分类:其他好文   时间:2020-01-22 22:20:39    阅读次数:83
链表大合集(一)
链表是一种物理存储单元上非连续、非顺序的存储结构。//相较于顺序存储结构:数组。 链表可以是单(向)链表,也可以是双(向)链表。//双向链表可以说是单向链表上的改进,这样子方便对节点的前驱节点进行操作。 *(?*ˊ?ˋ)?*? 也可以是循环链表,顾名思义,就是头尾相连的链表//目前是在做约瑟夫环的链 ...
分类:其他好文   时间:2020-01-22 20:01:23    阅读次数:94
Centos中查找文件、目录、内容
1、查找文件 1 find / -name 'filename' 2、查找文件夹(目录) 1 find / -name 'path' -type d 3、查找内容 1 find . | xargs grep -ri 'content' 3.1、只显示文件名称 1 find . | xargs gre ...
分类:其他好文   时间:2020-01-22 18:05:09    阅读次数:146
面试代码基础(二)二分法binary Search Sorted Array
二分法总结:满足某个条件的first position of。。。。 和 last position of。。。。用二分法 先从二分法开始写: 4点: 1.start+1<end; 退出条件两个相邻了就退出 2.mid=start+(end-start)/2;//防止溢出 3.A[mid] == > ...
分类:其他好文   时间:2020-01-22 14:44:16    阅读次数:80
Dungeon Master (简单BFS)
Problem Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not ...
分类:其他好文   时间:2020-01-22 14:33:31    阅读次数:71
Graph题目总结【不定期更新】
Find minimal ops to convert one str to another Description Given two alphabet strings str1 and str2. You can change the characters in str1 to any alph ...
分类:其他好文   时间:2020-01-22 12:49:47    阅读次数:112
清晰架构(Clean Architecture)的Go微服务: 事物管理
为了支持业务层中的事务,我试图在Go中查找类似Spring的声明式事务管理,但是没找到,所以我决定自己写一个。 事务很容易在Go中实现,但很难做到正确地实现。 需求: 1. 将业务逻辑与事务代码分开。 在编写业务用例时,开发者应该只需考虑业务逻辑,不需要同时考虑怎样给业务逻辑加事务管理。如果以后需要 ...
分类:其他好文   时间:2020-01-22 11:01:54    阅读次数:62
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!