updpate leetcode snip