buddy2333
V2EX  ›  问与答

碰到一道动归难题,思路完全卡住了,球大神解答!

  •  
  •   buddy2333 · May 5, 2019 · 1378 views
    This topic created in 2565 days ago, the information mentioned may be changed or developed.

    程序媛一枚……在刷题时碰到一道动规题……有大神知道怎么做吗? 大概是给定一个数组 A,如果 A[P0], A[P1], ..., A[Pk] 是等差的, 则称它是 A 的一个等差切片 返回 A 中等差切片的数量 题目具体内容可以看这个 https://www.lintcode.com/problem/arithmetic-slices-ii-subsequence/description

    想了半天了……坐等大神讲解!!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.