mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
refactor: Replace list()
and dict()
calls with literals (#7198)
This commit is contained in:
@ -160,7 +160,7 @@ def postorder(curr_node):
|
||||
"""
|
||||
postOrder (left, right, self)
|
||||
"""
|
||||
node_list = list()
|
||||
node_list = []
|
||||
if curr_node is not None:
|
||||
node_list = postorder(curr_node.left) + postorder(curr_node.right) + [curr_node]
|
||||
return node_list
|
||||
|
Reference in New Issue
Block a user