###题目 Jump Game ###解题方法 这道题可以用贪心算法的思想解决,类似于Jump Game II。 ###代码 class Solution: def canJump(self, nums: List[int]) -> bool: curEnd = 0 curFarthest = 0 ...
分类:
其他好文 时间:
2020-11-12 13:58:21
阅读次数:
5
一、技术概述 Json web token (JWT), 是为了在网络应用环境间传递声明而执行的一种基于JSON的开放标准((RFC 7519).定义了一种简洁的,自包含的方法用于通信双方之间以JSON对象的形式安全的传递信息。由于完成的项目需要进行不同身份用户的访问权限验证,因此采用的JWT实现验 ...
分类:
编程语言 时间:
2020-11-12 13:34:13
阅读次数:
8
本文呆鹅原创,原文地址:https://juejin.im/user/307518987058686/posts 前言 本文将从上帝角度讲解JS的世界,在这个过程中,大家就能完全理解JS的原型和原型链是什么,之后还会基于原型和原型链知识拓展一些相关知识。 阅读本文前可以思考下面三个问题: 你理解中的 ...
分类:
编程语言 时间:
2020-11-12 13:27:32
阅读次数:
7
public static boolean Find(int target, int [][] array) { if(array==null||array[0].length==0){ return false;//数组非空判断 } if (array[0][0]> target) { retur ...
分类:
编程语言 时间:
2020-11-10 11:01:49
阅读次数:
10
原文链接:https://blog.xieqiaokang.com/posts/36031.html JSON文件 备注1:JSON 编码支持的基本类型有 None、bool、int、float 和 str,同时也包含由这些基本类型组成的列表以及字典。对于字典,JSON 会假设所有键(key)都是字 ...
分类:
编程语言 时间:
2020-11-08 17:15:09
阅读次数:
26
#include<iostream> #include<cstring> #include<cmath> using namespace std; char map[8][8]; int n, m, t; int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; bool ...
分类:
其他好文 时间:
2020-11-08 17:14:10
阅读次数:
17
#include<iostream> #include<memory.h> #include<cmath> #include<algorithm> using namespace std; typedef struct { int x, y; }node; node d[6000]; int r, ...
分类:
其他好文 时间:
2020-11-08 17:11:46
阅读次数:
15
#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #define MAXN 100000 using namespace std; int pri[MAXN];///质数数列 bool vis[MAXN ...
分类:
其他好文 时间:
2020-11-08 17:07:41
阅读次数:
13
祝大家CSP$rp++$ 😃 函数定义了两遍 $bool$函数返回值一直为$true$:忘传参数了 线段树没有$build$ 把$i,l$写成$1$了,或者循环里枚举$i$写成$0,1$了 $RE:for$循环里$i--$写成$i++$ 链前里$i$和$v$写反 用^$1$表示反向边时,下标从$0 ...
分类:
其他好文 时间:
2020-11-07 17:11:07
阅读次数:
23
bool recursion(int* target, int srcSize, int* src, int num, int pst){ int cnt=0,i; int oodpst=0,evenpst=srcSize/2; int arr[5001]={0}; if (srcSize<=num ...
分类:
其他好文 时间:
2020-11-07 16:40:47
阅读次数:
16