Read the stdlib: deque

Posted by Bob on Wed 21 December 2016 in Data • Tagged with collections, data structures, performance, stdlib, deque • 2 min read

Use collections.deque to rotate letters in string (or elements in list). It has a native method which performs faster too.


Continue reading