krishna14kant / Data-Structures-

hacktoberfest hacktoberfest2020 hacktoberfest-accepted
45 stars 481 forks source link

Update 100.same_tree.py #553

Open jyotip31 opened 1 year ago

jyotip31 commented 1 year ago

Added comments to explain the logic. Adjusted the formatting to adhere to a consistent style for Python. Used clearer variable names. Combined the tree node creation and assignment in a more compact way. Moved the example usage to the end for better readability.