Skip to content

Commit 5803fcf

Browse files
committed
944 - Python
1 parent 778ff28 commit 5803fcf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Solution:
2+
def minDeletionSize(self, A: 'List[str]') -> 'int':
3+
4+
count = 0
5+
6+
for i in range(len(A[0])):
7+
for j in range(len(A) - 1):
8+
if A[j][i] > A[j + 1][i] :
9+
count += 1
10+
break
11+
12+
return count

0 commit comments

Comments
 (0)