0
Given a list of integers a 2D graph has to be plotted taking 1st, 3rd, 5th, ... numbers as upward slope and 2nd, 4th, ... numbers as downward slope
I have used python list to do it. is there any further optimization possible with python?
input integers :
3, 1, 2, 3, 6, 2, 3, 6, 2, 3, 6, 3, 2, 3,...