Shortest Cycle
You are given n integer numbers a1,a2,…,an. Consider graph on n nodes, in which nodes i, j (i≠j) are connected if and only if, ai AND aj≠0, where AND denotes the bitwise AND operation.
Find the length of the shortest cycle in this graph or determine that i
原创
2021-07-04 20:26:34 ·
106 阅读 ·
0 评论