Activity 1.1 PALINDROME Write a function called isPalindrome(text) that: • Accepts a string as input. • Returns True if the string is a palindrome (reads the same backward and forward), and False ...
You are given a tree (i.e. a connected, undirected graph that has no cycles) rooted at node 0 consisting of n nodes numbered from 0 to n - 1. The tree is represented by a 0-indexed array parent of ...