Binary_to_GeLei
x to y
y=x ^ (x >> 1)
a[n-1] …… 1
a[1]
a[n-1] …… 0
a[0]
Diff
//////////////////////////
a[n-1] …… a[k+1] 1 0 0 …… 0
a[k+2] a[k+1] 1 0 …… 0
a[n-1] …… a[k+1] 0 1 0 …… 1
a[k+2] a[k+1] 0 1 …… 1
Diff
时间: 2024-10-04 13:53:18