This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| leetcode 117: https://leetcode.cn/problems/populating-next-right-pointers-in-each-node-ii/description/ | |
| 给定一个二叉树: | |
| struct Node { | |
| int val; | |
| Node *left; | |
| Node *right; | |
| Node *next; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdarg.h> | |
| #include <stdlib.h> | |
| typedef unsigned char mystring_data_t; | |
| typedef struct mystring { | |
| mystring_data_t * data; | |
| size_t size; | |
| size_t length; |