Plot the Given Graph with no Libraries
Print The Given Diagram Using the Given Array No Use Of Libraries The Given Input Is: b = [10,7,12,2,4,7,2,4,1,2,6,6,3,2,1,4,7,2,7,0,0,0,0,0,0,0,0,0,0,0,3,1,4,2,1,5,2,6,5,3,6,1,1,1] b = [ 10 , 7 , 12 , 2 , 4 , 7 , 2 , 4 , 1 , 2 , 6 , 6 , 3 , 2 , 1 , 4 , 7 , 2 , 7 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 3 , 1 , 4 , 2 , 1 , 5 , 2 , 6 , 5 , 3 , 6 , 1 , 1 , 1 ] l = sum ( b ) d = sum ( b [ 0 :: 2 ]) - sum ( b [ 1 :: 2 ]) + len ( b ) // 2 print ( l ) print ( d ) a = [[ " " for i in range ( l )] for j in range ( d )] x = [] for i in range ( len ( b )): if i % 2 == 0 : for j in range (( b [ i ])): x . append ( 1 ) elif b [ i ] == 0 : x . append ( 0 ) else : for j in range (( b [ i ])): x . append ( -1 ) print ( x ) g = 0 m = 0 for i in range ( len ( x )): g += x [ i ] if m < g : m = g ik = i print ( "ind