Skip to content

Commit 8c80955

Browse files
authored
GH-285: solve leetcode 88 (#307)
1 parent 05a2444 commit 8c80955

File tree

13 files changed

+113
-1
lines changed

13 files changed

+113
-1
lines changed

collections/leetcode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<td>85</td>
105105
<td>86</td>
106106
<td>87</td>
107-
<td>88</td>
107+
<td>🟢&nbsp;<a href='https://github.com/rain1024/datastructures-algorithms-competitive-programming/tree/main/problems/leetcode88'>88</a></td>
108108
<td>89</td>
109109
<td>90</td>
110110
<tr>

collections/leetcode/data.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ problems:
4545
- name: 78
4646
languages: cpp
4747
level: medium
48+
- name: 88
49+
languages: python
50+
level: easy
4851
- name: 101
4952
languages: cpp
5053
level: easy

problems/leetcode88/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
solution
2+
*.dSYM
3+
python/main/__pycache__

problems/leetcode88/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Leetcode Problem
2+
3+
## Usage
4+
5+
Test program
6+
7+
```
8+
# Run all tests
9+
python solution_test.py
10+
```

problems/leetcode88/data/1.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1,2,3,0,0,0
2+
3
3+
2,5,6
4+
3

problems/leetcode88/data/1.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1,2,2,3,5,6

problems/leetcode88/data/2.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1
2+
1
3+
_
4+
0

problems/leetcode88/data/2.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

problems/leetcode88/data/3.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0
2+
0
3+
1
4+
1

problems/leetcode88/data/3.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

0 commit comments

Comments
 (0)