Test cases and benchmark for algorithm correctness and efficiency

前端 未结 0 1904
感情败类
感情败类 2020-11-27 21:20

Write a function: function smallestInt(A);

that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.

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