POJ#1147 NICE problem and solution! Get the first row based on last column. The time complexity is N which is very good I believe. Rank: 11209