This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def one_year_lease(current_rent): | |
| return current_rent * 0.0325 + current_rent | |
| def two_year_lease(current_rent): | |
| return current_rent * 0.05 + current_rent | |
| # year1 = 2158.40 * 6 + 2190.78 * 6 | |
| year1_rate = 2190.78 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func quicksort(_ arrayToSort: [Int]) -> [Int] { | |
| if arrayToSort.count == 1 { | |
| return arrayToSort | |
| } | |
| let pivot = arrayToSort[arrayToSort.count - 1] |