MCPcopy Create free account
hub / github.com/Flamewaker/JavaPersonalSummary / ByteDance12

Class ByteDance12

Code/exam/ByteDance12.java:13–46  ·  view source on GitHub ↗

@author todd @date 2020/6/26 13:41 @description: 栈 定一个数组序列,需要求选出一个区间,使得该区间是所有区间中经过如下计算的值最大的一个: 区间中的最小数 区间所有数的和最后程序输出经过计算后的最大值即可,不需要输出具体的区间。如给定序列 [6 2 1]则根据上述公式,可得到所有可以选定各个区间的计算值: 对于某个数,直接暴力拓展区间,维护区间最小值为当前数。

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected