algorithm notes: leetcode#734 sentence similarity