String removeDuplicateLetters(String s) { Stack<Character> stk = new Stack<>(); // 维护一个计数器记录字符串中字符的数量 // 因为输入为 ASCII 字符,大小 256 够用了 int[] count = new i ...
分类:
其他好文 时间:
2021-04-13 11:42:41
阅读次数:
0
import java.util.HashMap; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.Map; public class Station { private String name; ...
分类:
其他好文 时间:
2021-04-12 12:54:28
阅读次数:
0
ackage chapter; import java.util.ArrayList; import java.util.List; import java.util.Stack; public class Master { private static String[] op = { "+", " ...
分类:
其他好文 时间:
2021-04-12 12:51:46
阅读次数:
0
package Szys;import java.util.Random; import java.util.Scanner; public class szys { public static void main(String[] args) { int [][] arr=new int[1000 ...
分类:
其他好文 时间:
2021-04-12 12:49:42
阅读次数:
0
需求分析: 随机生成算式题目以及其结果 具体设计: 一个随机生成算式的方法Make() 一个计算结果的方法JiGuo() 具体编码: Make() public static String Make(){ StringBuilder bu = new StringBuilder(); int cou ...
分类:
其他好文 时间:
2021-04-12 12:44:40
阅读次数:
0
1. vi /etc/my.cnf 2. update mysql.user set authentication_string=password('123456') where user='root' and host='localhost'; 3. FLUSH PRIVILEGES; ...
分类:
数据库 时间:
2021-04-12 12:44:01
阅读次数:
0
1二分图最大匹配 在一张二分图中选出最多的边,使得边两两不相交。 2求解 2.1匈牙利算法 即不断地尝试匹配,有人抢就放弃的算法。 #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cst ...
分类:
其他好文 时间:
2021-04-12 12:41:05
阅读次数:
0
/* typeScript 中的数据类型 boolean number string array tuple 元组类型 enum 枚举类型 any 任意类型 null 和 undefined void 类型 never 类型 */ let str: string = '你好' // str = 1 ...
分类:
其他好文 时间:
2021-04-12 12:40:46
阅读次数:
0
结构体 结构体是将零个或多个任意类型的命名变量组合在一起的聚合数据类型。每个变量都叫做结构体的成员。 type Employee struct { ID int Name string age int } Employee就是一个结构体。 定义结构体时要注意 1.如果一个成员变量的首字母大写,则它是 ...
分类:
其他好文 时间:
2021-04-12 12:39:35
阅读次数:
0
四则运算编程练习 需求分析:根据用户输入,随机生成相应个数的表达式。 核心代码: step1:生成表达式并存入StringBuffer中 1 private static String[] op = { "+", "-", "*", "/" }; 2 /** 3 * 生成算数表达式 4 * 5 * ...
分类:
其他好文 时间:
2021-04-12 12:39:18
阅读次数:
0