TODO algo dp longest monotonically increasing sub-sequence child tree with max sum in a BST longest sub-sequence having sum greater than W searching sorting misc bit manupulation dbms ds regex