Skip to content

Commit b362250

Browse files
author
Partho Biswas
committed
no message
1 parent de2ce65 commit b362250

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎algoexpert.io/python/Lowest_Common_Manager.py‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
class OrgInfo:
42
def __init__(self, lowestCommonManager, numImportantReports):
53
self.lowestCommonManager = lowestCommonManager
@@ -11,7 +9,7 @@ def __init__(self, directReports):
119

1210

1311
# O(n) time | O(d) spaces
14-
def getLowestCommonnManager(topManager: Node, reportOne, reportTwo):
12+
def getLowestCommonManager(topManager, reportOne, reportTwo):
1513
return getOrgInfo(topManager, reportOne, reportTwo).lowestCommonManager
1614

1715

@@ -26,7 +24,3 @@ def getOrgInfo(manager: Node, reportOne, reportTwo):
2624
numImportantReports += 1
2725
lowestCommonManager = manager if numImportantReports == 2 else None
2826
return OrgInfo(lowestCommonManager, numImportantReports)
29-
30-
31-
32-

0 commit comments

Comments
 (0)