Dwight has given you a list with some integers. In this list, there is a bad series.The bad series starts from the beginning and spans up till the A[0]th index.Example:for [1,0,4,7] the bad series is [1,0]spanning up till 1st indexTherefore, the desired list is [4, 7]for [2,1,5,8,9], the bad series is [2,1,5]spanning up till the 2nd indexTherefor, the desired list is [8,9]Complete the given method solve which takes as parameter a list A and returns A such that the bad series is removedIn python
Answers
Answered by
2
Answer:
Is this question or answer? LOL
Explanation:
Answered by
0
Answer:
def solve(A):
# write your code here
n=len(A)
i=A[0]
if n%2==0:
del A[:i+1]
else:
A=A[1+i:]
return A
Similar questions