#include <bits/stdc++.h> typedef long long ll; ll dp[40][40][40],ans; int n,a[40][40]; char s[40]; ll dfs(int l,int r,int mid){ if (l==r) return 1; if ...
分类:
其他好文 时间:
2021-02-08 11:40:55
阅读次数:
0
Service层单元测试 步骤一:添加 jar 包 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version ...
分类:
编程语言 时间:
2021-02-06 12:17:35
阅读次数:
0
实现位数组 Table of Contents 1 问题 2 解答 1 问题 编写一组函数,实现位数组。函数的原型应该如下: void set_bit(char bit_array[],unsigned bit_number); void clear_bit(char bit_array[],uns ...
分类:
编程语言 时间:
2021-02-06 12:00:34
阅读次数:
0
最简单的链表 1 typedef struct LNode *List; 2 struct LNode { 3 ElementType Data; 4 List Next; 5 }; 6 struct LNode L; 7 List PtrL; 8 9 //建立 10 11 //求表长 12 int ...
分类:
其他好文 时间:
2021-02-06 11:58:08
阅读次数:
0
反转字符串 思路: 首尾对应字符串交换 结束条件 左边的index大于右边的index def f(l): return f1(l,0,len(l)-1) def f1(l,i,j): if i>j:return l else: l[i],l[j]=l[j],l[i] return f(l,i+1, ...
分类:
编程语言 时间:
2021-02-06 11:46:03
阅读次数:
0
数组重复元素之类问题的整理 lt26 删除排序数组重复项 主要是原地删除,O(1) 空间,很是巧妙 func removeDuplicates(nums []int) int { //O(1)空间复杂 if len(nums)==0{ return 0 } tmp:=0 //不同,tmp+1,放在相 ...
分类:
其他好文 时间:
2021-02-06 11:42:42
阅读次数:
0
动态代理模板 /** * Description : * 公用这个类,自动生成代理类 * * @author : AirCL * Date : 2021/2/4 * Time : 20:27 */ public class ProxyInvocationHandler implements Invo ...
分类:
编程语言 时间:
2021-02-05 10:47:05
阅读次数:
0
limitDecimals = value => { const reg = /^(\-)*(\d+)\.(\d).*$/; if (typeof value 'string') { return !isNaN(Number(value)) ? value.replace(reg, '$1$2.$3 ...
分类:
其他好文 时间:
2021-02-05 10:41:28
阅读次数:
0
springsecurity实现自动登录很简单,人家让我们配置一下就好了 1.首先得要有数据源 和 操作数据库的对象,只有这两个才能往表中写token;在配置类中注入数据源,在容器中加入 操作数据库的对象 @Configuration public class SecurityConfig exte ...
分类:
编程语言 时间:
2021-02-05 10:38:01
阅读次数:
0
NX二次开发-检查文件夹是否存在 1 bool CheckFolderExist(const string & strPath) 2 { 3 if (strPath.empty()) 4 { 5 return false; 6 } 7 8 WIN32_FIND_DATA wfd; 9 BOOL bV ...
分类:
其他好文 时间:
2021-02-05 10:36:27
阅读次数:
0