Skip to content

Commit

Permalink
[MUST REVIEW] How to calculate projection on 2D mat
Browse files Browse the repository at this point in the history
  • Loading branch information
kaestro committed Apr 27, 2024
1 parent 0ad2579 commit 27901b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def xyArea(self, gridHeights: List[List[int]]) -> int:
return result

def yzArea(self, gridHeights: List[List[int]]) -> int:
result = 0
result = sum(max(row) for row in gridHeights)
return result

def zxArea(self, gridHeights: List[List[int]]) -> int:
result = 0
result = sum(max(column) for column in zip(*gridHeights))
return result

0 comments on commit 27901b4

Please sign in to comment.