delta4d / parenthese-boolean

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:C++ 94.0%Language:Makefile 6.0%