FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonprogram/MaxSumOfIncreasinSubsequence at master · mohitgora55/pythonprogram · GitHub
mohitgora55
pythonprogram
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonprogram
/
MaxSumOfIncreasinSubsequence
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (16 loc) · 284 Bytes
Breadcrumbs
pythonprogram
/
MaxSumOfIncreasinSubsequence
Copy path
File metadata and controls
16 lines (16 loc) · 284 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ts=int(input())
l3=[]
l1=[]
for j in range (ts):
n=int(input())
l3.clear()
li=list(map(int, input().split()))
for i in range(1,n):
t=li[i-1]
for j in range(0,i):
if(li[i]>li[j]):
t=t+li[j]
l3.append(t)
if(len(l3)!=0):
print (max(l3))
li.clear()
Back
|
FazBrowse Home
|
New Git URL