Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Implement the A* (A-Star) Pathfinding Algorithm.

Hard

Problem Statement

Implement the A* (A-Star) Pathfinding Algorithm.

Sample Input

Grid with obstacles

Sample Output

Shortest path found

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
<?php function aStar($grid, $start, $end) { /* Your code here */ } ?>
Log in or sign up to run or submit your code.Log inSign up
Input
Grid with obstacles
Expected Output
Shortest path found