diff --git a/.obsidian/app.json b/.obsidian/app.json index ba7ab63..ba8a803 100644 --- a/.obsidian/app.json +++ b/.obsidian/app.json @@ -9,7 +9,7 @@ "foldHeading": true, "alwaysUpdateLinks": true, "showUnsupportedFiles": true, - "attachmentFolderPath": "files", + "attachmentFolderPath": "_files", "defaultViewMode": "preview", "fileSortOrder": "byCreatedTime", "showFrontmatter": true, diff --git a/OJ notes/pages/Leetcode Populating-Next-Right-Pointers-In-Each-Node.md b/OJ notes/pages/Leetcode Populating-Next-Right-Pointers-In-Each-Node.md index a287c01..0519857 100644 --- a/OJ notes/pages/Leetcode Populating-Next-Right-Pointers-In-Each-Node.md +++ b/OJ notes/pages/Leetcode Populating-Next-Right-Pointers-In-Each-Node.md @@ -71,7 +71,10 @@ simple BFS, for each level, connect the node to the next. Remember to get the for loop right. -##### +##### BFS-like iteration, two pointers + +We utilize the ->next property to link ptr->left->right->next to ptr->right->left + ##### Also can be done with DFS diff --git a/_files/Screenshot_2022-07-16-10-07-16-238_com.microsoft.office.onenote.png b/_files/Screenshot_2022-07-16-10-07-16-238_com.microsoft.office.onenote.png new file mode 100644 index 0000000..fb35f16 Binary files /dev/null and b/_files/Screenshot_2022-07-16-10-07-16-238_com.microsoft.office.onenote.png differ diff --git a/_files/Screenshot_2022-07-16-10-09-30-062_com.microsoft.office.onenote.png b/_files/Screenshot_2022-07-16-10-09-30-062_com.microsoft.office.onenote.png new file mode 100644 index 0000000..c0f86c2 Binary files /dev/null and b/_files/Screenshot_2022-07-16-10-09-30-062_com.microsoft.office.onenote.png differ