Answer the question
In order to leave comments, you need to log in
How to use deca to change the letters of a word backwards?
The functions "popBack" and "pushFront" will be used, but how to make them take each element (letters) and rearrange them?
Answer the question
In order to leave comments, you need to log in
from collections import deque
def rev(poly):
d = deque()
d.extendleft(poly)
return poly == ''.join(d)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question