Complement of empty index vector is empty index vector again

后端 未结 3 1987
梦谈多话
梦谈多话 2021-01-26 22:09

I know this question was already posted but the answer was a trick to solve the given problem some other way, but the core question remained unanswered.

The question is

3条回答
  •  终归单人心
    2021-01-26 22:55

    Thats because -0 = 0? But I can see how an algorithm can run into problem if this aspect is over-looked. So I suggest using setdiff instead of negative indices.

提交回复
热议问题