update edit distance, gray code, longest consecutive sequence, minimum window substr, sort color