0136_single-number

command
v0.0.0-...-60194e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Unlicense Imports: 0 Imported by: 0

README

0136_single-number

可以使用map来记录数字出现的次数.

题目条件是其余数字皆出现两次, 而解只出现一次, 要求不使用多余的空间.

利用位运算XOR.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL