- This event has passed.
7 PM – Intro to Competitive Programming – Darin
April 15, 2025 @ 7:00 pm - 8:00 pm
What We Did Today:
- Reviewed the difference between primitive/non-primitive data types
- Reviewed the use of enhanced vs. regular for loop
- We learned how to find sum of all numbers in an array
- We learned how to find sum of every other number in an array
- We learned how to swap two elements in an array
Homework:
Continue in your file named Apr15_ArrayAndList2.java, and submit to the google drive: here when you are finished!
// HW // EASY // find largest element in nums // find smallest element in nums // sum all even numbers // print forwards until you hit the middle of the list // MEDIUM // print all items in reverse // HARD // swap to reverse the array
Notes:
You can reach out to me at ddjapri@ayclogic.com if you have any questions!
You can find class notes here.