Skip to content

syntax highlight error #35

@daidai21

Description

@daidai21

I use leetcode now about this syntax.
image
This abnormal when I open the Plugin name of Python for VSCode.
image

This normal when I close the Plugin name of Python for VSCode.
This is code:

class Solution:
    def __init__(self):
        self.total = 0

    def convertBST(self, root: 'TreeNode') -> 'TreeNode':
        if root is not None:
            self.convertBST(root.right)
            self.total += root.val
            root.val = self.total
            self.convertBST(root.left)
        return root


# 优化
# Runtime: 80 ms, faster than 99.43% of Python3 online submissions for Convert BST to Greater Tree.
# Memory Usage: 14.9 MB, less than 2.62% of Python3 online submissions for Convert BST to Greater Tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions