human
Leaders in an array | Python Function to print leaders in array.
If loop didn 't break.
Driver function"
Solution in Python:
assistant
#Here is code to leaders in an array and the other steps required.
 def printLeaders ( arr , size ) :
	for i in range ( 0 , size ) :
		for j in range ( i + 1 , size ) :
			if arr [ i ] <= arr [ j ] :
				break
		if j == size - 1 :
			print arr [ i ] ,
arr = [ 16 , 17 , 4 , 3 , 5 , 2 ]
printLeaders ( arr , len ( arr ) )