添加题目说明
This commit is contained in:
parent
12b951142e
commit
f96e0519e0
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 矩阵中是否含有某字符串
|
||||
*/
|
||||
public class Question12 {
|
||||
public static void main(String[] args) {
|
||||
char[][] proNums = new char[][]{{'a','b','e'},{'c','d','f'},{'g','h','i'}};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
public class Question13 {
|
||||
static int maxRow = 3;
|
||||
static int maxCol = 3;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 剪绳子,绳子长度乘积最大
|
||||
*/
|
||||
public class Question14 {
|
||||
public static void main(String[] args) {
|
||||
int length = 8;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 一个数的二进制含有多少个1
|
||||
*/
|
||||
public class Question15 {
|
||||
public static void main(String[] args) {
|
||||
int a = 5;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 输出1-n位数,1-3位数即1-999
|
||||
*/
|
||||
public class Question17 {
|
||||
public static void main(String[] args) {
|
||||
int condition = 3;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 寻找链表中环的入口节点
|
||||
*/
|
||||
public class Question23 {
|
||||
public static void main(String[] args) {
|
||||
ListNode head = new ListNode(1);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 合并两个有序链表
|
||||
*/
|
||||
public class Question25 {
|
||||
public static void main(String[] args) {
|
||||
ListNode head1 = new ListNode(6);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* 一个树是否包含另一个树
|
||||
*/
|
||||
public class Question26 {
|
||||
private static boolean findRoot = false;
|
||||
public static void main(String[] args) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue