diff --git a/python/topics/Network-Flow-Problem/Ford-Fulkerson-max-flow.py b/python/topics/Network-Flow-Problem/Ford-Fulkerson-max-flow.py index 3b5b0b8..700f390 100644 --- a/python/topics/Network-Flow-Problem/Ford-Fulkerson-max-flow.py +++ b/python/topics/Network-Flow-Problem/Ford-Fulkerson-max-flow.py @@ -10,7 +10,6 @@ def __init__(self, graph): def bfs(self, s, t, parent): """Returns true if there is a path from source 's' to sink 't' in residual graph. Also fills parent[] to store the path.""" - # Mark all the vertices as not visited visited = [False] * self.row diff --git a/python/topics/geometry/convex-hull.py b/python/topics/geometry/convex-hull.py index 0a4bf5a..5985d1e 100644 --- a/python/topics/geometry/convex-hull.py +++ b/python/topics/geometry/convex-hull.py @@ -6,7 +6,6 @@ def convex_hull(points): starting from the vertex with the lexicographically smallest coordinates. Implements Andrew's monotone chain algorithm. O(n log n) complexity. """ - # Sort the points lexicographically (tuples are compared lexicographically). # Remove duplicates to detect the case we have just one unique point. points = sorted(set(points)) diff --git a/python/tree/bfs_traversal.py b/python/tree/bfs_traversal.py index 718a523..96f8743 100644 --- a/python/tree/bfs_traversal.py +++ b/python/tree/bfs_traversal.py @@ -23,7 +23,6 @@ def printLevelOrder(root): >>> printLevelOrder(root) [1, 2, 3, 4, 5, 6, 7] """ - # Base Case if root is None: return