« All Events
6 PM – USACO Bronze – Gamas
July 11 @ 6:00 pm - 7:00 pm
Today We Did
- We went over recursion and while loop.
- We went over the 3 basic recursion steps.
Homework
- create July11RecursionHw.py
- create public boolean isPalindrome(char[] text)
- create a while true and scanner program to achieve this below
Enter your text ('exit' to stop): racecar
'racecar' is a palindrome
Enter your text ('exit' to stop): gamas
'gamas' is not a palindrome
Enter your text ('exit' to stop): exit
Thank you for using this Palindrome recursion
- create public void reverseArray(char[] text)
- create a while true and scanner program to achieve this below
Enter your text ('exit' to stop): racecar
'racecar' is the reverse of 'racecar'
Enter your text ('exit' to stop): gamas
'samag' is the reverse of 'gamas'
Enter your text ('exit' to stop): exit
Thank you for using this Reverse Array recursion.