C:有效地循环大阵列(C: Looping the big array efficiently)
我有一个主列表整数数组,有大约500个数字。 并且,我有一组100个随机数,它从主列表中选择以找到丢失的数字。 现在,我需要针对主列表浏览这个随机数字列表。 C编程中最好的方法是在不挂起程序的情况下完成它。 如果我通过简单的'for'循环遍历500个元素,它将挂起,因为它需要遍历整个列表。 有人可以指导我吗?
谢谢。
I have a master list integer array which has around 500 numbers. And, i have a set of 100 randomized number which has picked from the master list to find the missing numbers. Now, I need to go through this randomized number list against the master list. What would be the best approach in C programming to go through it without hanging the program. If i go through in simple 'for' loop for 500 elements, it will hang as it needs to go through the entire list. Could someone direct me on this?
Thanks.
原文:https://stackoverflow.com/questions/12895843