[99클럽] 99클럽 코테 스터디 39일차 TIL - 힙 (Heap)
·
코딩테스트 연습/99클럽
오늘의 문제LeetCode - The K Weakest Rows in a Matrix (출처 하단 표기) 문제You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civilians). The soldiers are positioned in front of the civilians. That is, all the 1's will appear to the left of all the 0's in each row.A row i is weaker than a row j if one of the following is true:The number of soldiers in row i is less t..