
public static void manypeak (int n, double size) { if (n > 0) manypeak(n/2, size/2); for (int i = 1; i <=n; i++) { drawpeak(size); //method drawpeak() takes constant time } if (n>0) manypeak(n/2, size/2); }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
