Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 2b6dec0

Browse files
committed
944 finish
1 parent c28516c commit 2b6dec0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
package problem0944
22

33
func minDeletionSize(A []string) int {
4-
5-
return 0
4+
m, n := len(A), len(A[0])
5+
res := 0
6+
for j := 0; j < n; j++ {
7+
for i := 1; i < m; i++ {
8+
if A[i-1][j] > A[i][j] {
9+
res++
10+
break
11+
}
12+
}
13+
}
14+
return res
615
}

0 commit comments

Comments
 (0)