show dbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Solution { | |
/* | |
* @param nums: A list of integers | |
* @return: A integer indicate the sum of max subarray | |
*/ | |
public int maxSubArray(int[] nums) { | |
// write your code here | |
if (nums == null || nums.length == 0) { | |
return 0; | |
} |