For each element present in the array your task is to print the next smallest than that number. If it is not smallest print -1 using javascript

前端 未结 0 1633
挽巷
挽巷 2020-12-05 02:30

You are given with an array. For each element present in the array your task is to print the next smallest than that number. If it is not smallest print -1

Input Desc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题