wcz2023:你可以说忧郁是我的气质,天生的,没办法。。。

0 点赞 评论 收藏
分享
2016-08-24 17:38
哈尔滨工业大学 算法工程师 python开发工程...:static int getMaxDif(int a[],int n)
{
if(a==null||n<=1) return 0;
int min=Integer.MAX_VALUE;
int ans=Integer.MIN_VALUE;
for(int i=0;i<n;i++)
{
min=Math.min(min, a[i]);
ans=Math.max(ans, a[i]-min);
}
return ans;
}
是这个意思吗?

0 点赞 评论 收藏
分享
2016-04-16 10:13
哈尔滨工业大学 算法工程师 abcde66666...:这几天积极性都被打击了,终于有心情写下面经~大家可以互相讨论下题目~总结经验~

0 点赞 评论 收藏
分享
创作者周榜
更多
关注他的用户也关注了: