Javascript implementation to find the minimum number of operations required to move from ( 1 , 1 ) to ( N , M )
let MAX = 1e18 ; let n , m ; let v = new Array ( 151 ) ; for ( let i = 0 ; i < 151 ; i ++ ) { v [ i ] = [ 0 , 0 ] ; } let dp = new Array ( 151 ) ; for ( let i = 0 ; i < 151 ; i ++ ) { dp [ i ] = new Array ( 151 ) ; }