Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wushizhenking
CS-Notes
提交
340d7eb3
C
CS-Notes
项目概览
wushizhenking
/
CS-Notes
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
CS-Notes
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
340d7eb3
编写于
4月 10, 2018
作者:
C
CyC2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
auto commit
上级
a69252e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
16 deletion
+15
-16
notes/HTTP.md
notes/HTTP.md
+1
-1
notes/Java 基础.md
notes/Java 基础.md
+4
-4
notes/剑指 offer 题解.md
notes/剑指 offer 题解.md
+10
-11
未找到文件。
notes/HTTP.md
浏览文件 @
340d7eb3
...
@@ -828,7 +828,7 @@ HTTP/1.1 的解析是基于文本的,而 HTTP/2.0 采用二进制格式。
...
@@ -828,7 +828,7 @@ HTTP/1.1 的解析是基于文本的,而 HTTP/2.0 采用二进制格式。
# 参考资料
# 参考资料
-
上野宣. 图解 HTTP[M].
Ren min you dian chu ban she
, 2014.
-
上野宣. 图解 HTTP[M].
人民邮电出版社
, 2014.
-
[
MDN : HTTP
](
https://developer.mozilla.org/en-US/docs/Web/HTTP
)
-
[
MDN : HTTP
](
https://developer.mozilla.org/en-US/docs/Web/HTTP
)
-
[
Are http:// and www really necessary?
](
https://www.webdancers.com/are-http-and-www-necesary/
)
-
[
Are http:// and www really necessary?
](
https://www.webdancers.com/are-http-and-www-necesary/
)
-
[
HTTP (HyperText Transfer Protocol)
](
https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html
)
-
[
HTTP (HyperText Transfer Protocol)
](
https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html
)
...
...
notes/Java 基础.md
浏览文件 @
340d7eb3
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*
[
访问权限
](
#访问权限
)
*
[
访问权限
](
#访问权限
)
*
[
抽象类与接口
](
#抽象类与接口
)
*
[
抽象类与接口
](
#抽象类与接口
)
*
[
super
](
#super
)
*
[
super
](
#super
)
*
[
重载与重写
](
#重载与重写
)
*
[
覆盖与重载
](
#覆盖与重载
)
*
[
五、String
](
#五string
)
*
[
五、String
](
#五string
)
*
[
String, StringBuffer and StringBuilder
](
#string,-stringbuffer-and-stringbuilder
)
*
[
String, StringBuffer and StringBuilder
](
#string,-stringbuffer-and-stringbuilder
)
*
[
String 不可变的原因
](
#string-不可变的原因
)
*
[
String 不可变的原因
](
#string-不可变的原因
)
...
@@ -706,11 +706,11 @@ SuperExtendExample.func()
...
@@ -706,11 +706,11 @@ SuperExtendExample.func()
> [Using the Keyword super](https://docs.oracle.com/javase/tutorial/java/IandI/super.html)
> [Using the Keyword super](https://docs.oracle.com/javase/tutorial/java/IandI/super.html)
##
重载与重写
##
覆盖与重载
-
重写
存在于继承体系中,指子类实现了一个与父类在方法声明上完全相同的一个方法;
-
覆盖(Override)
存在于继承体系中,指子类实现了一个与父类在方法声明上完全相同的一个方法;
-
重载
即存在于继承体系中,也存在于同一个类中,指一个方法与已经存在的方法或者父类
的方法名称上相同,但是参数类型、个数、顺序至少有一个不同。应该注意的是,返回值不同,其它都相同不算是重载。
-
重载
(Overload)也存在于同一个类中,指一个方法与已经存在
的方法名称上相同,但是参数类型、个数、顺序至少有一个不同。应该注意的是,返回值不同,其它都相同不算是重载。
# 五、String
# 五、String
...
...
notes/剑指 offer 题解.md
浏览文件 @
340d7eb3
...
@@ -1986,6 +1986,7 @@ public int longestSubStringWithoutDuplication(String str) {
...
@@ -1986,6 +1986,7 @@ public int longestSubStringWithoutDuplication(String str) {
int
curLen
=
0
;
int
curLen
=
0
;
int
maxLen
=
0
;
int
maxLen
=
0
;
int
[]
indexs
=
new
int
[
26
];
int
[]
indexs
=
new
int
[
26
];
Arrays
.
fill
(
indexs
,
-
1
);
for
(
int
i
=
0
;
i
<
str
.
length
();
i
++)
{
for
(
int
i
=
0
;
i
<
str
.
length
();
i
++)
{
int
c
=
str
.
charAt
(
i
)
-
'a'
;
int
c
=
str
.
charAt
(
i
)
-
'a'
;
int
preIndex
=
indexs
[
c
];
int
preIndex
=
indexs
[
c
];
...
@@ -2010,21 +2011,19 @@ public int longestSubStringWithoutDuplication(String str) {
...
@@ -2010,21 +2011,19 @@ public int longestSubStringWithoutDuplication(String str) {
## 解题思路
## 解题思路
```
java
```
java
public
int
GetUglyNumber_Solution
(
int
N
)
{
public
int
GetUglyNumber_Solution
(
int
index
)
{
if
(
N
<=
6
)
return
N
;
if
(
index
<=
6
)
return
index
;
int
i2
=
0
,
i3
=
0
,
i5
=
0
;
int
i2
=
0
,
i3
=
0
,
i5
=
0
;
int
cnt
=
1
;
int
[]
dp
=
new
int
[
index
];
int
[]
dp
=
new
int
[
N
];
dp
[
0
]
=
1
;
dp
[
0
]
=
1
;
while
(
cnt
<
N
)
{
for
(
int
i
=
1
;
i
<
index
;
i
++
)
{
int
n2
=
dp
[
i2
]
*
2
,
n3
=
dp
[
i3
]
*
3
,
n5
=
dp
[
i5
]
*
5
;
int
n2
=
dp
[
i2
]
*
2
,
n3
=
dp
[
i3
]
*
3
,
n5
=
dp
[
i5
]
*
5
;
int
min
=
Math
.
min
(
n2
,
Math
.
min
(
n3
,
n5
));
dp
[
i
]
=
Math
.
min
(
n2
,
Math
.
min
(
n3
,
n5
));
dp
[
cnt
++]
=
min
;
if
(
dp
[
i
]
==
n2
)
i2
++;
if
(
min
==
n2
)
i2
++;
if
(
dp
[
i
]
==
n3
)
i3
++;
if
(
min
==
n3
)
i3
++;
if
(
dp
[
i
]
==
n5
)
i5
++;
if
(
min
==
n5
)
i5
++;
}
}
return
dp
[
N
-
1
];
return
dp
[
index
-
1
];
}
}
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录