Algorithm Designa58_q3_p3_PandG

Pacman and Ghost

502d0f87-91f4-4abc-ac13-59ee82e9f58b.cppC++
1// Loading code...

Selected Submission

100 / 100
0.169s
1672 KB
BFS/DFSImplementation
Time Comp.
O(R * C * G * T)
Space Comp.
O(R * C)
Readability
6/10

"The code simulates a game where a player needs to reach a destination within a time limit while avoiding ghosts. It uses BFS to determine the reachable areas by ghosts and the player, making BFS the core algorithmic concept. The problem also involves grid traversal and time management, which are handled through implementation details."

History

AttemptPoints Time
Try #91004/1/2025
Try #81004/1/2025
Try #704/1/2025
Try #6504/1/2025
Try #51004/1/2025
Try #4504/1/2025
Try #31004/1/2025
Try #21004/1/2025
Try #1804/1/2025