Student Transportation Expenses NU has very diverse students from different places. To reach the campus, each student must go through a sequence of stations to get to campus. Assume within the ith station you can pay x; to either get to station (i + 1) or (i + 2). At CSCI-304, we want to help our colleagues minimize their expenses to campus-it would be great especially after COVID-19. Input: expenses : array listing expenses to be paid at each station to move its values are non-negatives, and it has at least 2 values Output: m: the expenses of transportation to the campus Note the campus station is execluded Example: Assume the below table contains the expenses per each station Station Cost 1 1 2 3 3 6.5 4 2 5 Algorit 6 8
Algorithms
Student Transportation Expenses NU has very diverse students from different places. To reach the campus, each student must go through a sequence of stations to get to campus. Assume within the ith station you can pay x; to either get to station (i + 1) or (i + 2). At CSCI-304, we want to help our colleagues minimize their expenses to campus—it would be great especially after COVID-19.
Input: expenses : array listing expenses to be paid at each station to move its values are non-negatives, and it has at least 2 values
Output: m: the expenses of transportation to the campus Note the campus station is execluded
Example: Assume the below table contains the expenses per each station Station Cost 1 2 3 4 5 6 3 6.5 2 2 8
**In Python notebook**
![Student Transportation Expenses
NU has very diverse students from different places. To reach the campus, each student must go through a sequence of stations to get to campus. Assume
within the ith station you can pay x; to either get to station (i + 1) or (i + 2). At CSCI-304, we want to help our colleagues minimize their expenses to
campus-it would be great especially after COVID-19.
Input:
expenses : array listing expenses to be paid at each station to move
its values are non-negatives, and it has at least 2 values
Output:
m: the expenses of transportation to the campus
Note the campus station is execluded
Example:
Assume the below table contains the expenses per each station
Station
Cost
1
3
3
6.5
4
2
5
Algorit
6
8](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7bf0b604-61e9-4d3f-84d7-18cace0a0de8%2Fe6de4bd7-0126-4450-b0b9-f96a415e81e4%2F41j3dsl_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
![Fundamentals of Electric Circuits](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
![Electric Circuits. (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
![Engineering Electromagnetics](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)