mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 01:48:02 +00:00
Added results.py, which helps with testing graph and tree problems.
This commit is contained in:
13
graphs_trees/utils/results.py
Normal file
13
graphs_trees/utils/results.py
Normal file
@@ -0,0 +1,13 @@
|
||||
class Results(object):
|
||||
|
||||
def __init__(self):
|
||||
self.results = []
|
||||
|
||||
def add_result(self, result):
|
||||
self.results.append(result)
|
||||
|
||||
def clear_results(self):
|
||||
self.results = []
|
||||
|
||||
def __str__(self):
|
||||
return str(self.results)
|
||||
Reference in New Issue
Block a user