Skip to content

Commit d0f2983

Browse files
committed
Changed as requested
1 parent d879a1f commit d0f2983

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Dynamic Programming/MirrorOfBinTree.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ def _init_(self, val):
1313

1414
class Solution:
1515
#Function to convert a binary tree into its mirror tree.
16-
def createNode(self , val):
17-
mirror = Node(0)
18-
mirror.data = val
19-
mirror.right = None
20-
mirror.left = None
2116

2217

2318
def mirror(self,root):
@@ -41,9 +36,6 @@ def mirror(self,root):
4136
# Driver Code Starts
4237
#Initial Template for Python 3
4338

44-
45-
46-
#Contributed by Sudarshan Sharma
4739
from collections import deque
4840
# Tree Node
4941
class Node:

0 commit comments

Comments
 (0)