Last active
October 5, 2016 12:44
-
-
Save anakaiti/7616878986035f16295d529ffbfb2de9 to your computer and use it in GitHub Desktop.
This file contains 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
#include <iostream> | |
using namespace std; | |
int var[2] = {999999,1}; | |
void insert(int arg){ | |
if(arg < var[0]) var[0] = arg; | |
var[1]++; | |
} | |
void delete(int arg){ | |
if(var[1] > 1) height--; | |
else { | |
var[0]=999999; | |
var[1]=0; | |
} | |
} | |
void showminimum(){ | |
if(var[0] != 999999) cout << var[0]; | |
else cout << "Your set is empty laa.."; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment