BM318Maximum Product of Word Lengths

来源:互联网 发布:淘宝官网客户端 编辑:程序博客网 时间:2024/06/14 02:56

思路1 Brute Force

  • Use brute force two check every pairs. Has TLE problem

思路2 Bit

  • I want to use Bit, but bit of a and bit of bb always have common 1s with intersection or xor. I have no idea how to use them.
  • Then I found some code use _char - ‘a’ and then to use bit.
0 0