摘要: 1、题目描述 Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: 阅读全文
posted @ 2018-03-27 20:06 山里的小勇子 阅读(872) 评论(0) 推荐(0)
摘要: 1、题目描述 Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" re 阅读全文
posted @ 2018-03-27 18:59 山里的小勇子 阅读(1146) 评论(0) 推荐(0)
摘要: 1、题目描述 X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be 阅读全文
posted @ 2018-03-27 14:08 山里的小勇子 阅读(1123) 评论(0) 推荐(0)