package nowcoder;
public class solution63 {
public int maxProfit(int[] prices)
{
if(prices==null||prices.length==0)
{
return 0;
}
int soFarMin = prices[0];
int maxProfit = 0;
for(int i = 0;i