English Posts

Lisp expression parsing

October 31, 2022

Lisp expressions, also known as symbolic expressions (S-expressions), are prefixed expressions. In Lisp, the (quote) function or ' can easily parse symbolic expressions into internal list data structures, whereas in other languages, it would take some effort to do a similar conversion.

Read More

Eight queens puzzle

October 17, 2022

According to the wikipedia, the eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other; thus, a solution requires that no two queens share the same row, column, or diagonal.

Read More