Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Challenge #137 [Easy] String Transposition (
package dailyprogrammer
object StringTransposition extends App {
val words = Source.fromFile("D:/file.txt").getLines.toList.tail
val longestWord = words.maxBy(_.size)
val wordsTransposed =, ' ').toList).transpose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.