码迷,mamicode.com
首页 >  
搜索关键字:return null    ( 92144个结果
做题记录 Luogu P5960
Luogu P5960 【模板】差分约束算法 差分约束模板题。 #include<bits/stdc++.h> using namespace std; #define N 1000005 int first[N], Next[N], to[N], w[N], tot; int dis[N], vi ...
分类:其他好文   时间:2021-06-28 19:53:48    阅读次数:0
sql语句更新xml基本写法
sql语句更新xml基本写法 <mapper namespace="com.keyou.dao.samSystem.SamApplyDao"> <update id="updateRejectSamApply"> UPDATE SAM_APPLY <trim prefix="set" suffixO ...
分类:数据库   时间:2021-06-28 19:45:46    阅读次数:0
10.查找数组中未出现的最小正整数
1.题目如下 2.解题代码 #include<stdio.h> #include<stdlib.h> int finMissMin(int a[],int n) { int i,*b; b=(int *)malloc(sizeof(int)*n); //初始化为0 for(i=0;i<n;i++) ...
分类:编程语言   时间:2021-06-28 19:41:00    阅读次数:0
插入排序
1.原理: 2.代码实现: 1 /* 2 * insert:实现插入排序 3 * ary[ARRAY] 需要排序的数组 4 * @return 5 * [ARRAY] 排序后的新数组 6 * by js0205 7 */ 8 function insert(ary) { 9 let handle = ...
分类:编程语言   时间:2021-06-28 19:14:34    阅读次数:0
CosId 通用、灵活、高性能的分布式 ID 生成器
CosId 通用、灵活、高性能的分布式 ID 生成器 介绍 CosId 旨在提供通用、灵活、高性能的分布式系统 ID 生成器。 目前提供了俩大类 ID 生成器:SnowflakeId (单机 TPS 性能:409W JMH 基准测试)、RedisIdGenerator (单机 TPS 性能(步长 1 ...
分类:其他好文   时间:2021-06-28 19:10:52    阅读次数:0
Caffeine getIfPresent()返回 null 问题
Caffeine getIfPresent()返回 null 问题 问题 集成 Caffeine 时, 将 Cache 注册为全局的 Bean, 然后通过@Autowired 自动装配 使用 cache.put(key, val) 和 cache.getIfPresent(key) 放入和获取缓存 ...
分类:其他好文   时间:2021-06-28 19:10:03    阅读次数:0
一个新的发现
发现自己的基础太不牢固了 #include<bits/stdc++.h> using namespace std; int cnt=0; int dfs(int x) { if(x>=100)return x; dfs(x+1); dfs(x+2); } int main() { cout<<dfs ...
分类:其他好文   时间:2021-06-28 19:03:09    阅读次数:0
18、递归
递归 public class MethodDemo09 { //2! 2*1 //3! 3*2*1 //5! 5*4*3*2*1 public static void main(String[] args) { MethodDemo09 demo09 = new MethodDemo09(); i ...
分类:其他好文   时间:2021-06-28 18:52:21    阅读次数:0
19、案例
案例 public class MethodDemo11 { public static void main(String[] args) { judge(); } //加法 public static double add(double x,double y) { return x + y; } ...
分类:其他好文   时间:2021-06-28 18:50:17    阅读次数:0
删除单链表元素-链表相关
做链表提多画图,%99以上都要画图解决 虚拟借点 快慢指针 多指针 1. 输入 1-2-3-4-5-6-5-6;删除掉6的节点 思路:用到虚拟头节点 ,如果是删除的这 head = head.next; 如果不是 newTail.next = head; newTail = head; public ...
分类:其他好文   时间:2021-06-28 18:50:03    阅读次数:0
92144条   上一页 1 ... 8 9 10 11 12 ... 9215 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!