S[1] = [1]x = [6, 3, 5, 4, 10]for i in range(2, len(x)): S[i] = [1] if x[i - 1] <= x[i]:<br /> S[i] = S[i] + S[i - 1]
64.3k questions
77.9k answers
244k comments
80.0k users