Skip to content

2014-10: Sales Are Up

Given a vector representing monthly sales figures, write a dfn that returns the greatest percent month to month increase.

Examples:

      (your_function) 80 100 120 140
25
      (your_function) 123 123 123
0
      (your_function) 101 102 114 117 101 110 102 111 118 115 124 122
11.76470588
      (your_function) 200 180 160 140 120
¯10
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub