|
|
3ccce58e0a
|
ocaml: phase 5.1 unique_paths_obs.ml baseline (4x4 grid w/ obstacles = 3)
Test, Build, and Deploy / test-build-deploy (push) Failing after 25s
Standard 2D unique-paths DP with obstacles gating each cell:
dp[i][j] = if grid[i][j] = 1 then 0
else dp[i-1][j] + dp[i][j-1]
Grid (1s are obstacles):
. . . .
. # . .
. . . #
# . . .
dp:
1 1 1 1
1 0 1 2
1 1 2 0
0 1 3 3
Returns dp[3][3] = 3.
Complements grid_paths.ml (no-obstacles version) — same DP shape
but obstacles zero out cells and reshape the path count.
199 baseline programs total.
|
2026-05-11 05:14:47 +00:00 |
|