update leetcode Longest Common Prefix