/parenthese-boolean

Primary LanguageC++MIT LicenseMIT

Parenthese Boolean

Add parenthese to a boolean expression to make it evaluate ot true.

Usage

$ make
$ ./bool
> T^T
there is no way to ...
> T&F|T
T&(F|T)
(T&F)|T

⚠️ can not handle large strings.

Algorithm

Dynamic Programming.