Fewest walls to break through
A grid is a non-empty list of equal-length strings where "." is open floor and "#" is a wall. You start at the top-left cell and want to reach the bottom-right cell, moving one cell up, down, left or right at a time. You may step into a wall cell only after breaking that wall. Return the fewest walls you must break.
The top-left and bottom-right cells are always open. A grid of one cell needs no breaks.
Besides the tests, one large input (a 61 × 61 winding grid) with a ~150 ms limit (scaled to your device's speed): brute force won't pass.
Examples
fewest_breaks([".#.","#.#",".#."])→2fewest_breaks(["....","###.","....",".###","...."])→0fewest_breaks([".##.#..","#...###","...###."])→3