Radix sort using bitwise operations
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First of all this is homework , and I found another topic talking about the same subject but there was no answer. Here is the problem: The main problem is how to make this kind of sort. Should I convert each integer to bits and compare them? Please do not give me the solution just a hint or an explanation of how to do it. Thanks for your help ! [EDIT] I found this script in the internet but i did not understand how it works : #include <cstdlib> #include <iostream> #include <string> #include <cctype> #include<algorithm> #include<string>