摘要:        
int A[nSize],其中隐藏着若干0,其余非0整数,写一个函数int Func(int* A, int nSize),使A把0移至后面,非0整数移至数组前面并保持有序,返回值为原数据中第一个元素为0的下标。 尽可能不使用辅助空间且考虑效率及异常问题,注释规范且给出设计思路 注:我的方法的复杂度    阅读全文
posted @ 2014-08-10 22:43
Aloys_Code
阅读(466)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/* Function:method of Josephus question */ #include <iostream> using namespace std; struct node { int seq; node *next; }; typedef struct node NODE; vo    阅读全文
posted @ 2014-08-10 12:43
Aloys_Code
阅读(466)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号