地址 https://leetcode-cn.com/problems/jump-game/ 给定一个非负整数数组,你最初位于数组的第一个位置。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 判断你是否能够到达最后一个位置。 示例 1: 输入: [2,3,1,1,4] 输出: true 解释: ...
分类:
其他好文 时间:
2020-05-04 13:36:25
阅读次数:
53
ConCurrentHashMap 1.8 相比 1.7的话,主要改变为: 去除 Segment + HashEntry + Unsafe 的实现, 改为 Synchronized + CAS + Node + Unsafe 的实现 其实 Node 和 HashEntry 的内容一样,但是HashE ...
分类:
其他好文 时间:
2020-05-04 13:26:22
阅读次数:
62
TeanBlog 基于 Egg.js 的简约博客 ? 文档 TeanBlog 文档 ?? 反馈 点击 这里 来开启一个新的 Issue ? 特别感谢 Egg.js gitalk LeanCloud 开放资源 curtana ©? License MIT ...
分类:
Web程序 时间:
2020-05-04 01:06:13
阅读次数:
86
什么是DOM? DOM(Document Object Model)文档对象模型,是语言和平台的中立接口。。 允许程序和脚本动态地访问和更新文档的内容。 为什么要使用DOM? Dom技术使得用户页面可以动态地变化,如可以动态地显示或隐藏一个元素,改变它们的属性,增加一个元素等,Dom技术使得页面的交 ...
分类:
Web程序 时间:
2020-05-03 18:27:19
阅读次数:
72
.h #define SEGMENT 50 // 有序线性表元素每段长度 typedef int ElemType; // 定义线性表元素类型为整数 int. typedef struct{ ElemType *elem; // 元素类型的动态数组指针 int size; // 有序线性表的元素个数 ...
分类:
其他好文 时间:
2020-05-03 16:49:01
阅读次数:
50
用python实现百度翻译首先,需要简单的了解一下爬虫,尽可能简单快速的上手,其次,需要了解的是百度的API的接口,搞定这个之后,最后,按照官方给出的demo,然后写自己的一个小程序 打开浏览器 F12 打开百度翻译网页源代码: 我们可以轻松的找到百度翻译的请求接口为:http://fanyi.ba ...
分类:
编程语言 时间:
2020-05-03 14:44:41
阅读次数:
134
<form class="ui large form segment"> <h3 class="ui header">Add a Link</h3> <div class="field"> <label for="title">Title:</label> <input name="title" # ...
分类:
Web程序 时间:
2020-05-03 14:38:08
阅读次数:
74
linux中grep的用法详解 grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 Unix的grep家族包 ...
分类:
系统相关 时间:
2020-05-03 12:15:07
阅读次数:
94
"http://test.ctf8.com/" level1 借助window.alert()函数完成任务 level2 输入框输入test后 Ctrl+g搜索源码中的test,发现有两处 分别构造以下两个payload 第二个奏效 level3 同样的方式 构造payload为 发现 源代码用 处 ...
分类:
其他好文 时间:
2020-05-02 20:47:57
阅读次数:
155
Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 ...
分类:
其他好文 时间:
2020-05-02 14:51:55
阅读次数:
49