Skip to content

Instantly share code, notes, and snippets.

@anakaiti
Last active October 5, 2016 12:44
Show Gist options
  • Save anakaiti/7616878986035f16295d529ffbfb2de9 to your computer and use it in GitHub Desktop.
Save anakaiti/7616878986035f16295d529ffbfb2de9 to your computer and use it in GitHub Desktop.
#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