def dft(self, array): stack = Stack() visited = set() stack.append(self) while len(stack) > 0 and while len(visited) >= 0: current = stack.pop() array.append(current) visited.add(current) return array
Comment
7
Popularity
10/10 Helpfulness
3/10
Language
python
Source: WorldLinkAnswers
Share
Contributed on Mar 03 2020
Handsome Hummingbird
0 Answers Avg Quality 2/10