Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T i_maxim(T&valor, node_arbreNari*n ) const{
- if(n!=NULL){
- for(int i=0; i<n->seg.size(); ++i){
- i_maxim(valor, n->seg[i]);
- }
- if(n->info > valor) valor = n->info;
- }
- return valor;
- }
- T maxim() const{
- T max = this->primer_node->info;
- return i_maxim(max, this->primer_node);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement