Skip to content
Snippets Groups Projects

Tanguy

Open tanguy.dietrich requested to merge david.carballo/poo2019numeric:Tanguy into master
2 files
+ 29
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -23,6 +23,30 @@ final public class BinaryHeap
this.sort();
}
public boolean isEmpty()
{
if(this.size()==0)
{
return true;
}
else
{
return false;
}
}
public boolean exist(int k)
{
for(int val:this.lstBinaryHeap)
{
if(k==val)
{
return true;
}
}
return false;
}
public static void populate(BinaryHeap heap, int size)
{
Random rand = new Random();
Loading