Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
                            Tags
                            
                        
                          
                          - #보안이슈
- #abex
- #보안뉴스
- #심플즈
- GraphQL
- #심플즈 크랙미
- #크랙미 5번
- leetcode
- #크랙미4번
- Easy
- 리버싱
- #abex크랙미4번
- #고클린
- #크랙미3번
- java
- #abex크랙미
- #크랙미 10번
- #크랙미2번
- #파밍
- #리버싱
- #크랙미
- java8
- #크랙미 9번
- Spring
- springframework
                            Archives
                            
                        
                          
                          - Today
- Total
목록leetcode (1)
Halo World
      
      
        [LeetCode] 543. Diameter of Binary Tree
        
  
  
        
    
            
            
            
            
            
            
              
            
          https://leetcode.com/problems/diameter-of-binary-tree/ class Solution { int max=0; public int diameterOfBinaryTree(TreeNode root) { int left = findDepth(root.left); int right = findDepth(root.right); return Math.max(left + right, max); } int findDepth(TreeNode node) { if(node==null) return 0; int left = findDepth(node.left); int right = findDepth(node.right); max = Math.max(left + right, max); r..
        스터디/알고리즘 문제풀이
        
        2021. 9. 30. 08:31