Image

Imagelittlewhilegone wrote in Imagecpp

If I were to implement a nonrecursive algorithm for the language of palindromes that uses a queue and a stack, is it necessary for this algorithm to look at the entire queue and stack? Meaning, is it possible for me to reduce the number of times that the loop must exectute?

I apologize for being abstract.