上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页
摘要: 题目标签:String 题目让我们把大写字母转换成小写,只要遇到的是大写字母,把它 + 32 变成 小写就可以了。 Java Solution: Runtime beats 100.00% 完成日期:07/20/2018 关键词:Ascii code table 关键点:把大写字母 + 32 变成小 阅读全文
posted @ 2018-07-23 05:28 Jimmy_Cheng 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 题目标签:String 题目给了我们 对应每一个 字母的 morse 密码,让我们从words 中 找出 有几个不同的 morse code 组合。 然后只要遍历 words,把每一个word 转换成 morse code,把 唯一的 存入 HashSet 就可以了,最后返回 set 的 size。 阅读全文
posted @ 2018-07-23 05:26 Jimmy_Cheng 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2018-06-03 06:29 Jimmy_Cheng 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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 rotate 阅读全文
posted @ 2018-05-12 09:26 Jimmy_Cheng 阅读(842) 评论(0) 推荐(0) 编辑
摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2018-05-07 06:51 Jimmy_Cheng 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent. 'L' : L 阅读全文
posted @ 2018-04-22 05:00 Jimmy_Cheng 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa 阅读全文
posted @ 2018-04-21 08:24 Jimmy_Cheng 阅读(407) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan 阅读全文
posted @ 2018-04-15 06:28 Jimmy_Cheng 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there ar 阅读全文
posted @ 2018-04-08 10:43 Jimmy_Cheng 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 题目标签:String 题目给了我们一个string,要 阅读全文
posted @ 2018-04-02 01:51 Jimmy_Cheng 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页