Design O(log n) algorithm for finding 3 distinct elements in a list

后端 未结 0 1080
花落未央
花落未央 2020-12-20 19:16

The question is:

Design an O(log n) algorithm whose input is a sorted list A. The algorithm should return true if A contains at least 3 distinct elements

相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题