Find the missing number between [0, n] (n and numbers from 0 to n-1 are given by the user) using DAC

前端 未结 0 1847
不知归路
不知归路 2020-12-03 03:28

As a homework, I have to find the missing number from 0 to n using a DAC algorithm.

As an input, I get n-1 numbers from [0, n] and n.

I can easily do this with

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