- This event has passed.
2:30 PM – Intro To Competitive Programming – Gamas
September 30, 2023 @ 2:30 pm - 3:30 pm
Today We Did
- We continued with exploring more List practices
- printForwardEveryOtherElement
- swapFirstAndLast
- flipList
Homework
Inside Sep23ArrayAndListIteration.java
- finish the boolean isPalindrome(String[] text) method. This is similar to how flipList method works.
- study how to Java String substring functions works. Look at example in https://www.w3schools.blog/substring-in-java . So basically you need to know how to iterate one letter at a time in a String.
- Once you figure out how Java String substring works, create a new method boolean isPalindrome(String text) method. This one is very similar to #1 but the parameter is String text instead of String[] text.