摘要: Subversion(SVN) 是一个开源的版本控制系統 SVN 的一些概念 **repository(源代码库):**源代码统一存放的地方 **Checkout(提取):**当你手上没有源代码的时候,你需要从repository checkout一份 **Commit(提交):**当你已经修改了代 阅读全文
posted @ 2021-08-25 15:05 li修远 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 问题1:将正整数n划分成k个正整数之和的方案数, 1,2和2、1只算一次。 f[i][j]表示i划分成j个正整数之和的方案数。 非法情况: i = 0 或者 j = 0 或者 j > i 时,f[i][j]=0; 边界情况: j = i 或者 j = 1 时,f[i][j]=1; 状态转移 j个数中 阅读全文
posted @ 2020-10-11 14:51 li修远 阅读(177) 评论(0) 推荐(0) 编辑
摘要: package com.shence; import org.junit.Test; import java.util.*; public class Solution { class TreeNode { int val; TreeNode(int val) { this.val = val; } 阅读全文
posted @ 2020-09-30 14:13 li修远 阅读(500) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { private static final String REGEX = "[0-9a-z]{ 阅读全文
posted @ 2020-09-29 20:46 li修远 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 第三题 package sougo; import org.junit.Test; import java.util.*; public class Main01 { class Interval { int start; int end; Interval(int start, int end) 阅读全文
posted @ 2020-09-26 21:42 li修远 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1、并查集2、交叉链表求交点 import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Main3 { static int 阅读全文
posted @ 2020-09-26 21:34 li修远 阅读(113) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Main { static boolean[] used ; static int res; static void dfs(List<Integer>[] g, Map<Integer, Map<Integer,Integer>> 阅读全文
posted @ 2020-09-26 21:32 li修远 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 多组数据,第1行有1个正整数T,表示有T组数据。(T<=100) 对于每组数据,第1行有两个整数N和M。(1<=N, M<=1000) 接着N行,每行有一个长度为M的字符串,表示N*M的迷宫。 输出一个整数,表示使用特异功能的最少次数。如果小昆虫不能走出迷宫,则输出-1。 假设小昆虫在一个N*M的迷 阅读全文
posted @ 2020-09-20 22:31 li修远 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Java TreeMap public class TestTreeMap { public static void main(String[] args) { TreeMap<Integer, String> pairs = new TreeMap<>(); // 1,2,3,4 pairs.pu 阅读全文
posted @ 2020-09-20 19:21 li修远 阅读(260) 评论(0) 推荐(0) 编辑
摘要: package dada; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main01 { static List< 阅读全文
posted @ 2020-09-20 17:38 li修远 阅读(125) 评论(0) 推荐(0) 编辑