You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
7-1 Maximum Subsequence Sum这道题的代码在OJ有一组数据过不了,题目要求的是如果全为负数,则输出0,你的代码是只要最大和小于0则输出0。
还有就算我有个疑问,当最大和前面有一串0的时候,我感觉你这个程序也会出错,但是OJ在判这组数据的时候你的代码是对的,而我选择条件是<=时清零,但在这组数据却会出错。我不太理解,倘若你有时间可否交流一下这个问题