class Solution:
    def minDeletionSize(self, A: List[str]) -> int:
        ans = 0
        for j in range(len(A[0])):
            t = []
            for a in A:
                t.append(a[j])
            if sorted(t) != t:
                ans += 1
        return ans

 

相关文章:

  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-12-22
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-06-26
  • 2022-01-02
  • 2022-12-23
  • 2021-11-17
  • 2021-08-30
相关资源
相似解决方案