longest valid parentheses, single number2 and a non-leetcode question sub_integer