コード例 #1
0
ファイル: trees.c プロジェクト: pbu88/algorithm-playground
void catalan(int n){
    if(n<=1){
        memcpy(res,"1",2);
        return;
    }
    catalan(n-1);
    int m = n-1;
    int aux = 2*(2*m+1);
    set_op1(aux);
    memcpy(op2,res,PREC);
    mult();
    memcpy(op1,res,PREC);
    divide_by(m+2);
}
コード例 #2
0
 void divide_by(const AzDvect *v_max) {
   divide_by(v_max, &m_feat); 
 }