我的思路:
定义一个字典,
开始沥遍list
如果指向的数字 在字典里出现数 不等于1, 就让value=1(等于一,就加一)
然后沥遍字典,找到value等于1的位置,再读出key的数字
结果:速度太慢
solution:
没看到空间复杂度o(1)
异或逻辑运算:
待更新
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.