Minimum odd cost path in a matrix
Given a matrix, the task is to find the cost of the minimum path which is odd to reach the bottom of a matrix. If no such path exists, print -1. Note: Only right-bottom, left-bottom, and direct bottom moves are allowed. Examples: Input: mat[] = {{ 1, 2, 3, 4, 6}, { 1, 2, 3, 4, 5 }, { 1, 2, 3, 4, 5 }