Find the largest number n so, there are at least n elements with at least the value n

前端 未结 0 1563
故里飘歌
故里飘歌 2020-12-01 04:50

This should be a simple problem. But I\'m not supposed to use the O(n^2). ``input = 1, 1, 3, 6,8 output = 3 if it\'s 2 instead of 3 at input[2] , the output is 2.

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