Skip to content

Instantly share code, notes, and snippets.

abstract class Heap{
int [] heap=null;
int heapSize=0;
public int getCount();
public int getTop() {
return heap[1];
}
public abstract int removeTop();
public abstract int addLast(int value);
public void printHeap(){
Scanner in = new Scanner(System.in);
int a;
a = in.nextInt();
int b;
b = in.nextInt();
int sum;
sum = solveMeFirst(a, b);
System.out.println(sum);
# assuming python and pip are already installed
# installing the instantclient is usually where problems happen
# download the following files from oracle
#
# oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
# oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm
# oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm
# install the rpms