fork download
  1. s <- c(
  2. "The quick brown fox jumps over a lazy dog.",
  3. "The jay, pig, fox, zebra and my wolves quack!",
  4. "Pack my box with seven dozen liquor jugs.",
  5. "The horse, pig, fox, zebra and my wolves quack!",
  6. "Jackdaws love my small sphinx of quartz.",
  7. "Jackdaws love my big sphinx of quartz.",
  8. "The quick brown fox jumps over a lazy cat.",
  9. "Pack my box with five dozen liquor jugs."
  10. )
  11.  
  12. l <- nchar(s)
  13. for (i in 1:length(s)) {
  14. if (!all(LETTERS %in% unlist(strsplit(toupper(s[i]), "")))) l[i] <- Inf
  15. }
  16. cat(sprintf("%s\n", s[which(l == min(l))]), sep = "")
Success #stdin #stdout 0.27s 39368KB
stdin
Standard input is empty
stdout
Jackdaws love my big sphinx of quartz.