Skip to content

Instantly share code, notes, and snippets.

View samirsd's full-sized avatar
💭
©

samir samirsd

💭
©
View GitHub Profile
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
func quicksort(_ arrayToSort: [Int]) -> [Int] {
if arrayToSort.count == 1 {
return arrayToSort
}
let pivot = arrayToSort[arrayToSort.count - 1]