摘要: Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal".Example 1:Input: [5,... 阅读全文
posted @ 2017-02-12 18:36 xiejunzhao 阅读(155) 评论(0) 推荐(0)
摘要: Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.Input: ["Hello", "Alaska", "Dad", "Peace"] Output: ["Ala... 阅读全文
posted @ 2017-02-12 00:25 xiejunzhao 阅读(142) 评论(0) 推荐(0)