Don't wanna be here? Send us removal request.
Text
pt to sili
Mai sau có đến dc Sili?
Ở mãi pt vẫn miệt nhoài.
Dăm ba thuật toán làm ta bí.
Ấy vậy vẫn muốn đến sili....
2 notes
·
View notes
Text
31/10/2018
-Array.IndexOf(arr,value,index,<count>) Tương tự cho LastIndexOf
-Zip();
-bitwise:
x&1 ==0 ? even : odd;
Test if the n-th bit is set : x & (1<<n) ==0 n-th isset
Set the n-th bit. :y== x | (1<<n);
Unset the n-th bit: y=n&~(1<<n);
Toggle the n-th bit: y=x^(1<<n)
Turn off the rightmost 1-bit. y=x&(x-1)
Isolate the rightmost 1-bit. y = x & (-x)
Right propagate the rightmost 1-bit. y = x | (x-1)
Isolate the rightmost 0-bit. y = ~x & (x+1)
Turn on the rightmost 0-bit. y = x | (x+1)
check if a number is power of 2 n && ( n-1 ) ) == 0
1 note
·
View note