Skip to content

Commit b02e927

Browse files
author
Hamid Gasmi
committed
#165 is started
1 parent f41c944 commit b02e927

File tree

7 files changed

+27
-0
lines changed

7 files changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# python3
2+
import sys
3+
4+
def find_occurrences(text, patterns):
5+
occs = set()
6+
7+
// write your code here
8+
9+
return occs
10+
11+
if __name__ == '__main__':
12+
text = sys.stdin.readline().strip()
13+
pattern_count = int(sys.stdin.readline().strip())
14+
patterns = sys.stdin.readline().strip().split()
15+
occs = find_occurrences(text, patterns)
16+
print(" ".join(map(str, occs)))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AAA
2+
1
3+
A
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0 1 2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ATA
2+
3
3+
T G C

5-string-processing-and-pattern-matching-algorithms/4-Constructing-Suffix-Arrays-and-Suffix-Trees/suffix_array_matching_tests/02e

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ATATATA
2+
3
3+
ATA C TATAT
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4 2 0 1

0 commit comments

Comments
 (0)