min maps and solution