Skip to content

Commit b1d8411

Browse files
author
ssjssh
committed
添加文档
1 parent 6e42aa0 commit b1d8411

31 files changed

+93
-38
lines changed

src/ssj/clrs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
算法导论里面的习题

src/ssj/divide_conquer/find_max_sublist_without_ recursion.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/ssj/dynamic/README.md

Whitespace-only changes.

src/ssj/graph/README.md

Whitespace-only changes.

src/ssj/graph/general_graph.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
# -*- coding:UTF-8
33

44
import sys
5+
from ssj.lib.stack import Stack
56

67
reload(sys)
78
sys.setdefaultencoding('UTF-8')
89

9-
from ssj.lib import queue
10-
from ssj.lib import Stack
1110

1211
__author__ = 'shenshijun'
1312

src/ssj/graph/weighted_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding:UTF-8
3-
from ssj.lib import Queue
3+
from ssj.lib.queue import Queue
44

55
__author__ = 'shenshijun'
66
"""

src/ssj/greedy/README.md

Whitespace-only changes.

src/ssj/heap/README.md

Whitespace-only changes.

src/ssj/leecode/README.md

Whitespace-only changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env python
2+
# -*- coding:UTF-8
3+
__author__ = 'shenshijun'
4+
"""
5+
'.' Matches any single character.
6+
'*' Matches zero or more of the preceding element.
7+
8+
The matching should cover the entire input string (not partial).
9+
10+
The function prototype should be:
11+
bool isMatch(const char *s, const char *p)
12+
13+
Some examples:
14+
isMatch("aa","a") → false
15+
isMatch("aa","aa") → true
16+
isMatch("aaa","aa") → false
17+
isMatch("aa", "a*") → true
18+
isMatch("aa", ".*") → true
19+
isMatch("ab", ".*") → true
20+
isMatch("aab", "c*a*b") → true
21+
"""
22+
23+
24+
class Solution(object):
25+
def isMatch(self, s, p):
26+
"""
27+
:type s: str
28+
:type p: str
29+
:rtype: bool
30+
"""
31+
pass

0 commit comments

Comments
 (0)