This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// ApiClient | |
// | |
// Created by Tencent on 12-2-27. | |
// Copyright (c) 2012 Tencent. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import "WXApi.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myNode.left = myHeap.deleteMin(); | |
myNode.right = myHeap.deleteMin(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BinaryHeap | |
{ | |
public: | |
explicit BinaryHeap(int capacity = 100); | |
explicit BinaryHeap(const vector<char> & items); | |
bool isEmpty( ) const; | |
const char & findMin( ) const; | |