JAVA_Delete Columns to Make Sorted_LeetCode 944 풀이 class Solution { public int minDeletionSize(String[] strs) { int len = strs[0].length(), res = 0; for(int i = 0; i < len; i++){ char ch1 = 'a'; for(String str : strs){ char ch2 = str.charAt(i); if(ch2 < ch1){ res++; break; } ch1 = ch2; } } return res; } } * 출처 https://leetcode.com/problems/delete-columns-to-make-sorted/ Delete Columns to Make Sorted - LeetCode Can you solve this real interview question? Delete Columns to Make Sorted - You are gi...
#DeleteColumnstoMakeSorted_LeetCode944
#JAVA
#JAVA_DeleteColumnstoMakeSorted
#JAVA_DeleteColumnstoMakeSorted_LeetCode944
#JAVA_LeetCode944
원문링크 : JAVA_Delete Columns to Make Sorted_LeetCode 944