Algorithm: efficient way to remove duplicate integers from an array

前端 未结 30 2247
离开以前
离开以前 2020-11-22 16:03

I got this problem from an interview with Microsoft.

Given an array of random integers, write an algorithm in C that removes duplicated numbers an

30条回答
  •  名媛妹妹
    2020-11-22 16:30

    Use bloom filter for hashing. This will reduce the memory overhead very significantly.

提交回复
热议问题