BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/6534923311644672/lesson/b23554897146281fc0767a12ddc8d131?ref=outlook-calendar
SUMMARY:Homework
DTSTART;TZID=America/Los_Angeles:20260502T190000
DTEND;TZID=America/Los_Angeles:20260502T200000
LOCATION:https://www.learndesk.us/class/6534923311644672/lesson/b23554897146281fc0767a12ddc8d131?ref=outlook-calendar
DESCRIPTION: * Homework1:

- Write the same function isOdd that takes a natural number and returns true if the number is odd, but using recursion and without using the modulo (%) operator.

print(isOdd(4)) // will print false
print(isOdd(41)) // will print true
print(isOdd(0)) // will print false

Use Base Cases:

isOdd(0) = false
isOdd(1) = true

Use template:

func isOdd(_ n: Int) -> Bool {
    if (..) { // BASE CASE 1
        return ... 
    }  else if (...) {
        return ...    // BASE CASE 2
    } else { // RECURSIVE CASE
        return ... isOdd(...) ... 
     }
}


* Homework2:

  - Write a function isIncreasing that takes a list of Ints and returns true if numbers are in increasing (equals OK) order. An empty list should result in true.

https://www.learndesk.us/class/6534923311644672/lesson/b23554897146281fc0767a12ddc8d131?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR