Replace with Next Largest Number

# Introduction In this lab, you are tasked with writing a program to replace each integer in a list with the next largest number in the list, and if a number is the largest in the list, it should be replaced with -1.

|
60 : 00

Click the virtual machine below to start practicing