ARTS-第19周

ARTS (第19周)

学习需要坚持不懈

本周:

最大有序子序列

Algorithm 算法

最大有序子序列

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

public static int maxSortNumsAll(int[] n) {
maxNums = 0;
maxSortNumsAll(n, 0, 1, 1);
return maxNums;
}

// 最大有序长度
public static void maxSortNumsAll(int[] n, int i, int j, int len) {
// System.out.println( "i=" + i + ",j=" + j );
if (len > maxNums) {
maxNums = len;
}
if (j == n.length) {
return;
}
if (n[i] < n[j]) {
// 有序度加一
maxSortNumsAll(n, j, j + 1, len + 1);
}
// 跳过当前数
maxSortNumsAll(n, i, j + 1, len);
// 下一组数
if (i == j - 1)// 少做点运算
maxSortNumsAll(n, i + 1, j + 1, 1);
}

Review 英文文章

https://spring.io/projects/spring-security-oauth

介绍spring和oatuh

Tip 技巧

spring + OAtuah2的整合

Oauth2 是一种身份认证、鉴权的规范,是当前流行的规范之一

https://blog.csdn.net/AaronSimon/article/details/84071811

Share 分享

spring + OAtuah2的整合

https://blog.csdn.net/AaronSimon/article/details/84071811

http://www.iocoder.cn/Spring-Security/longfei/First-acquaintance-with-Spring-Security-OAuth2/