zoukankan      html  css  js  c++  java
  • Maximum subsequence sum

    This is a very famous problem from programming peals

    Given an array of integers, return the maximum
    subsequence sum of the array, if the maximus sum
    less than 0, return 0
    Example
    1, 2, -6, 3, -2, 4, -1, 3, 2, -4
    return 9
    3 + -2 + 4 + -1 + 3 + 2 = 9

    Code

    or more concise

    Code
  • 相关阅读:
    Lotus Notes中文档查询(转)
    MSSQL日志管理
    VS使用带临时表的存储过程
    TaskbarForm
    IT人士在离职后可以做的14件事情
    app.config数据库连接字符串的加密
    IT职场人,切不要一辈子靠技术生存
    wmi资料
    迁移成功
    【SpeC#】-C#的又一同胞兄弟
  • 原文地址:https://www.cnblogs.com/graphics/p/1499815.html
Copyright © 2011-2022 走看看