DFS: stands for Depth First Search., uses Stack to find the shortest path., is better when target is far from source, It is faster, BFS: stands for Breadth First Search., uses Queue to find the shortest path., is better when target is closer to Source., It is slower,

ลีดเดอร์บอร์ด

สไตล์ภาพ

ตัวเลือก

สลับแม่แบบ

คืนค่าการบันทึกอัตโนมัติ: ใช่ไหม