A couple examples:
public int lowKey(){
return subNodes[0].lowKey();
}
public void print(){
for(int i=0; i < used; i++){
subNodes[ i ].print();
}
And yes they actually work correctly...
I'm not sure if they're harder or easier to understand than traditional recursive functions. This is in java, btw.
public int lowKey(){
return subNodes[0].lowKey();
}
public void print(){
for(int i=0; i < used; i++){
subNodes[ i ].print();
}
And yes they actually work correctly...
I'm not sure if they're harder or easier to understand than traditional recursive functions. This is in java, btw.