refer to other's elegant code
ugly code, TODO
DP problem, not figure it out, refer others' elegant code