Today I learned 3 algorithms:
- To find a number that occurs only once, an xor algorithm may be used. (lettcode136)
- For more than half the number, you can use Moore voting method. (lettcode169)
- If a value of a two-dimensional sorted array exists, find an anchor that has both maximum and minimum properties. (lettcode240)