摘要:        
struct Node* connect(struct Node* root) { if (root == NULL) { return root; } // 从根节点开始 struct Node* leftmost = root; while (leftmost->left != NULL) {     阅读全文
        
            posted @ 2020-12-18 14:55
温暖了寂寞
阅读(90)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
#define min(a,b) ((a)<(b))?(a):(b) int minimumTotal(int** triangle, int triangleSize, int* triangleColSize){ for (int i=triangleSize-2; i>=0; i--) for    阅读全文
        
            posted @ 2020-12-18 12:08
温暖了寂寞
阅读(82)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
void flatten(struct TreeNode* root) { struct TreeNode* curr = root; while (curr != NULL) { if (curr->left != NULL) { struct TreeNode* next = curr->lef    阅读全文
        
            posted @ 2020-12-18 11:18
温暖了寂寞
阅读(38)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号