American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

2:30 PM – Intro to Competitive Programming – Gamas

September 23, 2023 @ 2:30 pm - 3:30 pm

Homework
  1. Inside Sep23ArrayAndListIteration.java add codes to finish the following 2 methods
    1. printForwardEveryOtherElement
    2. findMin
  2. Create one new method printForwardToMiddleUsingList(List<Integer>). Redo method printForwardUpToMiddle(int[]) , but this time use List<Integer> instead of array.
  3. Create one new method swapFirstAndLast(int[] nums). This method will swap the first and last element of the list. No need to use for loop.
  4. Create a new method printForwardFromMiddle(int[] array). This will print elements inside an array from the middle element all the way to the end element.
    1. For example if an array has the following 0,1,2,3,4,5,6,7,8,9. Then calling this method will print 5,6,7,8,9.
    2. if an array has the following 0,1,2,3,4,5,6,7,8,9,10, then this method will print 5,6,7,8,9,10.

Details

Date:
September 23, 2023
Time:
2:30 pm - 3:30 pm
Verified by MonsterInsights