Solutions for Bigger Element

    • @AaronSkake
    • @Daniel, submitted in Python 3, achived 100% score
    
    def solve(arr):
        ls = []
    
        for i in range(0, len(arr), 1):
    
            next = -1
            for j in range(i+1, len(arr), 1):
                if arr[i] < arr[j]:
                    next = arr[j]
                    break
            # print(next)
            ls.append(next)
        return ls