bfs tag

2 questions


1 answers
426 views
0
I wonder if it's irrelevant to use BFS!

The questions are as follows!There is an ice mold of N×M size. The part with the hole is marked as 0 and the part with the partition is marked as 1.If the perforated parts are attached up, down, left,...

1 years ago

1 answers
82 views
0
Python while question

Below is the width-first search algorithm codeGo back without errors and the answer is Thom.But in the while door, whilesearch_queue:while search_queue == True:I shouldn't have used it like thisWhat i...

2 years ago

© 2024 OneMinuteCode. All rights reserved.