It's important to note that the book was written over several years and in multiple drafts, and Twain never considered it finished before his death. However, his literary executors compiled and published the various manuscripts to create the final version.