import javax.swing.JEditorPane;
import sk.upjs.jpaz2.WinPane;
import sk.upjs.paz.calltree.CallTree;
public class Spustac {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Fraktaly t = new Fraktaly();
// WinPane plocha=new WinPane();
// plocha.add(t);
// t.center();
// //t.kriz(100);
// t.utvar(3, 50);
int[] p = { 10, 15, 54, 54, 897, 321, 654, 987 };
//System.out.println(maximumNove(p, 0, p.length - 1));
System.out.println(t.jeVasci(10, 34));
}
public static int maximum(int[] p, int odIdx, int poIdx) {
CallTree.markCall(poIdx - odIdx);
if (odIdx == poIdx)
return p[odIdx];
else
return Math.max(p[odIdx], maximum(p, odIdx + 1, poIdx));
}
public static int maximumNove(int[] p, int odIdx, int poIdx) {
CallTree.markCall(poIdx - odIdx);
if (odIdx == poIdx)
return p[odIdx];
else
return Math.max(maximumNove(p, odIdx, (poIdx + odIdx) / 2),
maximumNove(p, (poIdx + odIdx) / 2 + 1, poIdx));
}
}