Skip to content

Comments

add new task dfs#26

Open
Gosha924 wants to merge 1 commit intomasterfrom
10_hw_python_dfs_new
Open

add new task dfs#26
Gosha924 wants to merge 1 commit intomasterfrom
10_hw_python_dfs_new

Conversation

@Gosha924
Copy link
Owner

No description provided.

@Gosha924 Gosha924 requested a review from chernishev November 29, 2025 13:26
vertex = stack.pop()
if vertex not in visited:
visited.append(vertex)
for neighbor in reversed(self.adjacency_list[vertex]):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в чем смысл реверсить массив? просто лишняя операция.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants