recursion

Workshop Participants & Bernadette Cheng

divideWork(numOfStudents, area) {
  if (numOfStudents <= 1) {
    clean();
  }
  else {
    students = numOfStudents / 2;
    area = area / 2;
    divideWork (students, area);
    divideWork(numOfStudents - students, area);
  }
}


License

The images and resources in this website are free to use for educational purposes.
1. Right Click Image
2. Click "Save Image As"