Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BHeap heapify(int arr[], size_t tamanio){
- BHeap arbol=bheap_crear();
- for(int i=0;i<tamanio;++i)
- bheap_insertar(arbol,arr[i]);
- return arbol;
- }
- BHeap bheap_merge(BHeap heap1, BHeap heap2){
- BHeap arbol=bheap_crear();
- if(bheap_es_vacio(heap1))
- return heap2;
- if(bheap_es_vacio(heap2))
- return heap1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement