Today I learned 3 algorithms:

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