my own solutions on OJ