1368. Minimum Cost to Make at Least One Valid Path in a Grid - Solutions and Explanation | Vultr Docs