algorithm notes: leetcode#645 set mismatch