Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function.

Share Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function. with FacebookShare Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function. with Twitter
  • For instance, factorial functions have one input, so they should expect one base case whereas recursive functions with two inputs will generally have two base cases, one for each of the extreme values.

More about this tip

Tags

  • Programming Concepts
External Source
Ran Libeskind-Hadas from the CSNYC Tip-A-Thon.
Other Tips By
Other Tips By Ran Libeskind-Hadas

Similar tips

Use these 5 strategies to give students useful debugging strategies that will help them fix Segmentation Faults.
Have students design time counters to reinforce place value and lists.
Misconception: Students confuse conditionals and events in event-based languages such as Blockly.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy