mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Added results.py, which helps with testing graph and tree problems.
This commit is contained in:
parent
acc72a8b8a
commit
1e5ff4f465
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)
|
Loading…
Reference in New Issue
Block a user