这题好难。自己没想到用动态规划,敲了很久,敲出了可以通过400个测试点的代码,还是有一些情况没有考虑到。不舍得删,记录一下。对输入用例 "aaa" "abac*a" 不能给出正确答案。 class Solution { public boolean isMatch(String s, String ...
分类:
其他好文 时间:
2021-03-16 13:45:02
阅读次数:
0
Java基础语法 标识 单行标注 // 多行标注 /* */ 多做标注 关键字 public class Demo02 { public static void main(String[] args) { String ab="c"; System.out.print(ab); } } 注意语法中符 ...
分类:
编程语言 时间:
2021-03-16 11:57:10
阅读次数:
0
线程创建三个方法: 1.继承thread类 2.实现runnable接口 3.实现callable接口 实例: //线程的创建方法public class TestNew { public static void main(String[] args) { new Mythread1().start ...
分类:
编程语言 时间:
2021-03-16 11:55:44
阅读次数:
0
public class SimpleExpressDemo02 { public static void main(String[] args) { int a=10,b=6; System.out.println("改变之前的数是:a=" + a + ",b=" + b); a-=b++; // ...
分类:
其他好文 时间:
2021-03-16 11:51:45
阅读次数:
0
本文分享Spring中如何实现Redis响应式交互模式。 本文将模拟一个用户服务,并使用Redis作为数据存储服务器。 本文涉及两个java bean,用户与权益 public class User { private long id; private String name; // 标签 priv ...
分类:
编程语言 时间:
2021-03-16 11:44:04
阅读次数:
0
变量 变量是程序中最基本的存储单元,其要素包括变量名,变量类型和作用域。 变量的作用域 类变量 实例变量 局部变量 public class Hello { static int a = 0;//类变量(静态变量) String name = "zhangsan";//实例变量 public voi ...
分类:
编程语言 时间:
2021-03-15 11:28:54
阅读次数:
0
jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 ...
分类:
Web程序 时间:
2021-03-15 11:27:30
阅读次数:
0
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:
其他好文 时间:
2021-03-15 11:24:45
阅读次数:
0
1.字符串中的Str.charAt(num)方法能将字符串中的字符分割。 2.字符串中的长度方法String.length(); 3.把字符串转换为数组 String.toCharArray() 4.字符串翻转方法:reverse()。 5.字符串判断相等的方法: String1.equals(St ...
分类:
编程语言 时间:
2021-03-15 11:10:39
阅读次数:
0
先上一个标准用法 接口 public interface Dog { void run(); int eatCount(); boolean eta(String name); } 实现 public class GunDog implements Dog { @Override public vo ...
分类:
其他好文 时间:
2021-03-15 11:09:49
阅读次数:
0