Skip to content

Commit

Permalink
Remove undesirable output on runnint tests
Browse files Browse the repository at this point in the history
Fixed keon#377
  • Loading branch information
danghai committed Jul 18, 2018
1 parent 7391883 commit 966cece
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions algorithms/backtrack/subsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,3 @@ def subsets_v2(self, nums):
for num in sorted(nums):
res += [item+[num] for item in res]
return res


test = [1, 2, 3]
print(test)
print(subsets(test))
5 changes: 0 additions & 5 deletions algorithms/backtrack/subsets_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,3 @@ def backtrack(res, nums, stack, pos):
res = set()
backtrack(res, nums, [], 0)
return list(res)


test = [1, 2, 2]
print(test)
print(subsets_unique(test))
3 changes: 0 additions & 3 deletions algorithms/bfs/shortest_distance_from_all_buildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@ def bfs(grid, matrix, i, j, count):
matrix[k][l][0] += step+1
matrix[k][l][1] = count+1
q.append((k, l, step+1))

grid = [[1,0,2,0,1],[0,0,0,0,0],[0,0,1,0,0]]
print(shortest_distance(grid))

0 comments on commit 966cece

Please sign in to comment.