Second largest element in an array in C++

前端 未结 0 932
滥情空心
滥情空心 2021-02-19 16:33

I tried the following approach to calculate the second largest element in an array using recursion. If there exists no second largest element , then return -1 eg -> [12,12,12

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