An Exercise in Permutations Using Java

I came across an interesting exercise on permutations while reading the book Data Structures & Algorithms in Java by Goodrich, Tamassia and Goldwasser and thought I would write about how I solved it iteratively. The exercise states the following: Write a short Java program that outputs all possible strings formed by using the characters ‘c’, […]