摘要: [抄题]: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a cana 阅读全文
posted @ 2018-03-19 22:19 苗妙苗 阅读(266) 评论(0) 推荐(0)
摘要: [抄题]: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Gi 阅读全文
posted @ 2018-03-19 20:15 苗妙苗 阅读(175) 评论(0) 推荐(0)
摘要: [抄题]: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if th 阅读全文
posted @ 2018-03-19 11:49 苗妙苗 阅读(159) 评论(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 or 阅读全文
posted @ 2018-03-19 09:16 苗妙苗 阅读(147) 评论(0) 推荐(0)
摘要: [抄题]: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to  阅读全文
posted @ 2018-03-19 08:38 苗妙苗 阅读(132) 评论(0) 推荐(0)