I don't want to admit it , The mistake of being young ！

``````inline void _BR(int* a,int r){
for(int i=0,j=1;i<r;++i,j<<=1){
for(int k=0,kx=j;k<j;++k,++kx){
a[k]=a[k]<<1;
a[kx]=a[k]|1;
}
}
}
``````

## [ Black science and technology ]bit reverse More articles about

1. these JavaScript Programming black Technology

1. Write a rating component "**********".slice(5 - rate, 10 - rate); Define a variable rate yes 1 To 5 Value , Then execute the above code , Look at the picture Only then discovered that the plug-in and so on all ...

2. JS Black science and technology

1. On how to gracefully take random strings Math.random().toString(16).substring(2) // 13 position Math.random().toString(36).substring(2 ...

3. c++ It's easy to use “ Black science and technology ”

Cut to the chase , Black Technology One . Black tech function ( I won't write the common ones , for example sort function ) 1.next_permutation(a+1,a+1+n) a[1-n] Full Permutation 2.reverse(a+1,a+1+n) take a ...

4. c++ Black technology, which is easy to use in China

Cut to the chase , Black Technology One . Black tech function ( I won't write the common ones , for example sort function ) 1.next_permutation(a+1,a+1+n) a[1-n] Full Permutation 2.reverse(a+1,a+1+n) take a ...

5. ACM: FZU 2105 Digits Count - The line segment tree of bit operation 【 Black tech Welfare 】

FZU 2105  Digits Count Time Limit:10000MS     Memory Limit:262144KB     64bit IO Format:%I64d & ...

6. Black tech project : heroes III Mod &lt;&lt;Fallen Angel&gt;&gt; Introduce

Introduction to hero invincible Three (Heroes of Might and Magic III) Britain 3 yes 1999 Year by year New World Computing stay Windows Turn strategy Magic game developed on the platform , Its publisher is 3DO. ...

7. [ Do it yourself with black Technology ] 1、 Xiaohei technology —— How to transform ordinary household appliances into mobile phones App Linked “ Smart hardware ”

NOW, Step Pass this black technology on to you ~ One . Analysis of control circuit board of common household appliances General household appliances , The human-computer interface is generally composed of buttons and indicator lights ( High end will be a little more complicated , I don't think about it here ) So the interaction process , In fact, that is : From the current indicator information , According to the operation process, according to the corresponding ...

8. C++ The black science and technology

I met Tencent on Tuesday , I only shot before TST push , It seems to be TST Interview There is a problem ," How to generate a class that cannot be inherited ", Over and over again, I only think of this problem , Make the constructor of the parent class private , Make subclasses unavailable , Finally, it comes down to a ...

9. Disney black Technology ： Wall climbing robots VertiGo

12 month 30 Japan , A wall climbing robot developed by Disney has exposed an interesting video . It can be seen from the video that when the robot touches the wall, it reacts quickly and climbs up . according to the understanding of , This wall climbing robot is called VertiGo, By Disney research center and Zurich Union ...

## Random recommendation

1. The siege lion is on the way （ lu ）-- Submit run MapReduce Program to hadoop Cluster operation

This way can't be directly in eclipse Debug code in . The first thing you need to do is src Put... On the server hadoop The configuration file :core-site.xml\yarn-site.xml\hdfs-site.xml\mapred-s ...

2. Web Basic requirements for front end Development Engineer

A good Web Front end development engineers should have breadth in knowledge system , There's also depth , So it's hard for many big companies to recruit ideal front-end development engineers even if they pay high salaries . Now the point is not to explain technology , It's more about explaining the skills . Technology is not black or white , Only right and wrong ...

4. Use OpenSSL API Do security programming

http://www.ibm.com/developerworks/cn/linux/l-openssl.html OpenSSL API There's a bit of ambiguity in the document . Because there's not much about OpenSSL Use ...

5. hermite matrix

Reading on the line . Because I didn't take linear algebra class before . So I decided to lay a solid foundation . When reading, of course, there will be concepts, terms or theorems that you don't understand . So record it here --- hermit To understand a matrix, it's as if we need to know what conjugation is first (con ...

6. ELK Simple installation test

1 Introduce components Filebeat It's a log file shipping tool , After installing the client on your server ,filebeat It will monitor the log directory or the specified log file , Trace and read these files ( Track changes in documents , Keep reading ). Kafka It's a high swallow ...

7. php How and linux To communicate

FastCGI principle FastCGI It's a tool for Http Server Interface for communication with dynamic scripting languages , Most popular Http Server All support FastCGI, Include Apache.Nginx and lighttpd etc. . ...

8. Mybatis Framework Visualization （1）

Mybatis Overall architecture view : Pick up mouth layer SqlSession ( Defined Mybatis Exposed to application calls API) nucleus heart It's about The reason is layer Configuration analysis ( Load the core configuration . Mapping configuration . mapper Interface annotation information , ...

9. Java And NIO

Want to learn Java Of Socket signal communication , First of all, learn Java Of IO and NIO Basics , This can be read <Java NIO Series of tutorials >. The following shows that I am familiar with the code Java Of NIO Programming Notes . 1. buffer (Bu ...

10. spring Father and son Ioc The relationship between containers

I found it on the Internet , No direct explanation ioc Parent child container relationship article , So I looked at the code , Write it down for yourself , Write two lines and take notes . 1. It's going on dean When you sign up for , The parent container and the child container do not interfere with each other , Register your own 2. When instantiated ...