giles
0231bb46a6
Test, Build, and Deploy / test-build-deploy (push) Failing after 28s
ocaml: phase 5.1 trapping_rain.ml baseline (LeetCode trapped water = 6)
Classic trapped-rain-water two-pass DP:
left_max[i] = max(heights[0..i]) (forward sweep)
right_max[i] = max(heights[i..n-1]) (downto sweep)
water = sum over i of (min(left_max[i], right_max[i])
- heights[i])
For [0; 1; 0; 2; 1; 0; 1; 3; 2; 1; 2; 1]: water = 6.
Tests dual sweep (forward + downto), array of running maxes,
inline-if rhs of <- for running-max update (uses iter-236 fix
for <- accepting if/match RHS).
203 baseline programs total.
2026-05-11 05:54:39 +00:00
..
2026-05-10 00:36:29 +00:00
2026-05-11 04:04:42 +00:00
2026-05-10 21:37:41 +00:00
2026-05-10 06:43:46 +00:00
2026-05-10 23:08:16 +00:00
2026-05-10 02:26:10 +00:00
2026-05-11 01:02:59 +00:00
2026-05-11 01:22:31 +00:00
2026-05-11 04:44:37 +00:00
2026-05-10 22:07:17 +00:00
2026-05-11 05:25:03 +00:00
2026-05-11 00:09:06 +00:00
2026-05-11 04:54:36 +00:00
2026-05-10 05:01:08 +00:00
2026-05-11 03:14:23 +00:00
2026-05-11 03:54:52 +00:00
2026-05-11 03:04:14 +00:00
2026-05-11 05:04:37 +00:00
2026-05-10 04:20:47 +00:00
2026-05-11 01:12:33 +00:00
2026-05-11 01:53:21 +00:00
2026-05-10 22:58:13 +00:00
2026-05-09 23:27:15 +00:00
2026-05-09 23:03:06 +00:00
2026-05-09 23:37:36 +00:00
2026-05-09 23:17:00 +00:00
2026-05-09 23:50:25 +00:00
2026-05-10 00:26:46 +00:00
2026-05-10 00:09:57 +00:00
2026-05-11 05:54:39 +00:00
2026-05-10 23:48:46 +00:00
2026-05-10 21:57:42 +00:00
2026-05-11 02:54:50 +00:00
2026-05-10 05:41:02 +00:00
2026-05-11 05:44:38 +00:00
2026-05-10 02:46:20 +00:00
2026-05-11 01:42:26 +00:00
2026-05-11 03:34:48 +00:00
2026-05-10 06:21:06 +00:00
2026-05-11 03:24:45 +00:00
2026-05-11 02:04:08 +00:00
2026-05-10 03:22:29 +00:00
2026-05-10 04:08:53 +00:00
2026-05-10 04:38:59 +00:00
2026-05-11 02:44:40 +00:00
2026-05-10 04:29:58 +00:00
2026-05-10 06:53:38 +00:00
2026-05-10 03:41:19 +00:00
2026-05-11 01:32:41 +00:00
2026-05-11 00:31:08 +00:00
2026-05-10 23:28:29 +00:00
2026-05-10 06:11:57 +00:00
2026-05-10 23:18:26 +00:00
2026-05-10 22:37:44 +00:00
2026-05-11 05:34:46 +00:00
2026-05-11 04:14:33 +00:00
2026-05-11 04:24:29 +00:00
2026-05-10 05:21:14 +00:00
2026-05-10 23:58:50 +00:00
2026-05-10 21:47:52 +00:00
2026-05-10 01:39:25 +00:00
2026-05-11 02:14:44 +00:00
2026-05-10 01:29:52 +00:00
2026-05-10 03:13:36 +00:00
2026-05-10 01:02:18 +00:00
2026-05-11 02:34:58 +00:00
2026-05-10 22:47:22 +00:00
2026-05-11 00:42:08 +00:00
2026-05-10 03:02:17 +00:00
2026-05-10 03:50:59 +00:00
2026-05-10 22:17:40 +00:00
2026-05-11 02:25:04 +00:00
2026-05-10 02:36:37 +00:00
2026-05-10 06:34:13 +00:00
2026-05-10 23:38:40 +00:00
2026-05-11 03:44:40 +00:00
2026-05-10 02:05:09 +00:00
2026-05-10 07:06:29 +00:00
2026-05-11 04:34:40 +00:00
2026-05-10 22:27:18 +00:00
2026-05-10 04:51:15 +00:00
2026-05-11 05:54:39 +00:00
2026-05-10 01:17:11 +00:00
2026-05-10 05:11:12 +00:00
2026-05-10 03:59:56 +00:00
2026-05-11 05:14:47 +00:00
2026-05-11 00:52:42 +00:00
2026-05-10 01:49:23 +00:00