Commits

Robert Smith committed ed9d7a7

dox

Comments (0)

Files changed (1)

miscellaneous_exercises/reverse-words.lisp

 ;;;; reverse-words.lisp
 ;;;; Copyright (c) 2013 Robert Smith
 
-;;;; Exercise: Given a string such as "abc def", reverse the words,
-;;;; delimited by spaces, in the string in place.
+;;;; Exercise: Reverse the letters of words, delimited by spaces, in a
+;;;; string in place.
+;;;;
+;;;; Example: "Hello my name is:    Bob." ==> "olleH ym eman :si    .boB"
 
 (defun reverse-substring! (string start end)
   "Reverse the substring of characters in the string STRING from the
 
 
 ;;;; Exercise: Reverse the order of words in a sentence.
+;;;;
+;;;; Example: "Hello my name is:    Bob." ==> "Bob.    is: name my Hello"
 
 (defun reverse-sentence (string)
   "Reverse the order of the words in the sentence STRING."
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.