human
Make an array strictly increasing by repeatedly subtracting and adding arr [ i | Function to check if an array can be made strictly increasing.
Traverse the given array arr [ ].
Update the value of p , arr [ i ] , and arr [ i - 1 ].
Traverse the given array.
Check if the array arr [ ] is strictly increasing or not.
Otherwise , array is increasing order , prYes.
Driver Code"
Solution in Python:

Write me a code to make an array strictly increasing by repeatedly subtracting and adding arr [ i and the other steps required?
assistant
#Here is code to make an array strictly increasing by repeatedly subtracting and adding arr [ i and the other steps required.
 def check ( arr , n ) :
	for i in range ( 1 , n ) :
		if ( arr [ i - 1 ] >= ( i - 1 ) ) :
			p = arr [ i - 1 ] - ( i - 1 )
			arr [ i ] += p
			arr [ i - 1 ] -= p
	for i in range ( 1 , n ) :
		if ( arr [ i ] <= arr [ i - 1 ] ) :
			print ( " No " )
			return
	print ( " Yes " )
if __name__ == ' _ _ main _ _ ' :
	arr = [ 1 , 5 , 2 , 7 , 6 ]
	N = len ( arr )
	check ( arr , N )