AlgoMaster Logo

Maximum Gap

nums=[3, 6, 9, 1]
0 / 5
algomaster.io
Step:Sort the array, then the answer is the largest adjacent difference