Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMaxSeqSum ¶
求最大子序列和 (就是说子序列加起来和最大)
Example ¶
这个验证的是FindMaxSeqSum方法控制台输出的max和OutPut后面的14是否一致,如果相同,则表示验证通过,否则测试用例失败
FindMaxSeqSum([]int{1, 3, -9, 6, 8, -19})
Output: 14
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.