leetcode

934 Shortest Bridge

link: Shortest Bridge Thought Since the question ask for shortest, so BFS probabely the best algorithms to solve it. But […]

Scroll to Top