"that are all of the same length" is the key. This statement makes everything much simpler. And, please take care that L may contain duplicated strings.
My main reference is: http://yucoding.blogspot.com/2013/09/leetcode-question-106-substring-with.html
Remember: feel the problem first.. then look up your armory