摘要: Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s 阅读全文
posted @ 2018-12-22 18:17 fatttcat 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given an array of balls, where the color of the balls can only be Red, Green or Blue, sort the balls such that all the Red balls are grouped on the le 阅读全文
posted @ 2018-12-22 15:35 fatttcat 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h 阅读全文
posted @ 2018-12-22 07:35 fatttcat 阅读(120) 评论(0) 推荐(0) 编辑