American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – USACO – Gamas

December 20, 2024 @ 4:00 pm - 5:00 pm

Today We Did
  1. We reviewed last week homework.
  2. We learn how to do isPalindrome
  3. We learn how to copy and array and insert a new element in the middle of the new array.
Homework
  1. No class until Jan 9, 2025. Merry Christmas and Happy New Year.
  2. Inside Dec20Palindrome.java
    1. create a new method “public boolean isPalindromeIgnoreSpace(String word)”.
      1. This method will return true for the following
        1. racecar
        2. race car
        3. was it a cat i saw
        4. kayak
      2. This method will return false for the following
        1. gamas
        2. gamas go to disneyland
  3. Inside Dec20InsertOrDeleteInTheMiddleArray.java
    1. create a new method “public String[] copyAndDeletetInMiddle(String[] oldArr, int index)”
      1. String[] arr = new String[]{“a”,”b”,”c”};
      2. String[] newArr = main.copyAndDeleteInMiddle(arr, 1);
      3. // result [“a”, “c”]

Details

Date:
December 20, 2024
Time:
4:00 pm - 5:00 pm
Verified by MonsterInsights