码迷,mamicode.com
首页 >  
搜索关键字:bool    ( 16475个结果
LeetCode #55 Jump Game
###题目 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
SpringBoot集成JWT实现权限验证(个人技术博客)
一、技术概述 Json web token (JWT), 是为了在网络应用环境间传递声明而执行的一种基于JSON的开放标准((RFC 7519).定义了一种简洁的,自包含的方法用于通信双方之间以JSON对象的形式安全的传递信息。由于完成的项目需要进行不同身份用户的访问权限验证,因此采用的JWT实现验 ...
分类:编程语言   时间:2020-11-12 13:34:13    阅读次数:8
上帝视角一文理解JavaScript原型和原型链
本文呆鹅原创,原文地址:https://juejin.im/user/307518987058686/posts 前言 本文将从上帝角度讲解JS的世界,在这个过程中,大家就能完全理解JS的原型和原型链是什么,之后还会基于原型和原型链知识拓展一些相关知识。 阅读本文前可以思考下面三个问题: 你理解中的 ...
分类:编程语言   时间:2020-11-12 13:27:32    阅读次数:7
剑指Offer(Java)-1-二维数组中的查找
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
Python 文件IO:JSON 文件的读取与写入
原文链接:https://blog.xieqiaokang.com/posts/36031.html JSON文件 备注1:JSON 编码支持的基本类型有 None、bool、int、float 和 str,同时也包含由这些基本类型组成的列表以及字典。对于字典,JSON 会假设所有键(key)都是字 ...
分类:编程语言   时间:2020-11-08 17:15:09    阅读次数:26
HDU 1010 搜索 奇偶剪枝
#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
POJ 1054 搜索
#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
Noobest Error
祝大家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
【leetcode】魔术排列
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
16475条   上一页 1 ... 27 28 29 30 31 ... 1648 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!