From b4c72cd21b177b3b4be3d939944f08ad6c4f71a5 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Thu, 28 May 2020 21:51:45 +0800 Subject: [PATCH] Update 2020-05-28-summing-root-to-leaf-numbers.md --- website/blog/2020-05-28-summing-root-to-leaf-numbers.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/blog/2020-05-28-summing-root-to-leaf-numbers.md b/website/blog/2020-05-28-summing-root-to-leaf-numbers.md index 102d914c..743be6a7 100644 --- a/website/blog/2020-05-28-summing-root-to-leaf-numbers.md +++ b/website/blog/2020-05-28-summing-root-to-leaf-numbers.md @@ -4,11 +4,11 @@ title: Summing Root To Leaf Numbers author: Raivat Shah author_title: Student at NUS Computing author_url: https://github.com/raivatshah -author_image_url: https://avatars3.githubusercontent.com/u/29497717?s=460&u=0624&v=4 +author_image_url: https://github.com/raivatshah.png tags: [leetcode, trees, problem-solving] --- -Sum Root to Leaf Numbers is an [interesting problem from Leetcode](https://leetcode.com/problems/sum-root-to-leaf-numbers/). The problem is of medium difficulty and is about binary trees. This post is an explained solution to the problem. +Sum Root to Leaf Numbers is an [interesting problem from LeetCode](https://leetcode.com/problems/sum-root-to-leaf-numbers/). The problem is of medium difficulty and is about binary trees. This post is an explained solution to the problem. I assume that you’re familiar with Python and the concept of binary trees. If you’re not, you can read [this article](https://www.tutorialspoint.com/python_data_structure/python_binary_tree.htm) to get started. @@ -42,7 +42,7 @@ class Solution: def sum_numbers(self, root: TreeNode) -> int: ``` -The method signature given to us in the problem has one argument: root, which is of the type `TreeNode` . A `TreeNode` class is as follows (from Leetcode): +The method signature given to us in the problem has one argument: root, which is of the type `TreeNode` . A `TreeNode` class is as follows (from LeetCode): ``` class TreeNode: