← OYO questions

Minimum cost to travel from station 0 to n-1

Filed under OYO

Given an N x N cost matrix where cost[i][j] represents the cost to travel from station i to station j, find the minimum cost to reach station N-1 starting from station 0. You can only travel to a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.