Literary genre.
Novel in which the reader is challenged to solve a puzzle before the detective explains it at the end.