abc_begin

导航

2017年9月23日 #

345. Reverse Vowels of a String【easy】

摘要: 345. Reverse Vowels of a String【easy】 Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hell 阅读全文

posted @ 2017-09-23 23:29 LastBattle 阅读(145) 评论(0) 推荐(0) 编辑

551. Student Attendance Record I【easy】

摘要: 551. Student Attendance Record I【easy】 You are given a string representing an attendance record for a student. The record only contains the following 阅读全文

posted @ 2017-09-23 22:59 LastBattle 阅读(154) 评论(0) 推荐(0) 编辑

383. Ransom Note【easy】

摘要: 383. Ransom Note【easy】 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will 阅读全文

posted @ 2017-09-23 19:08 LastBattle 阅读(158) 评论(0) 推荐(0) 编辑

657. Judge Route Circle【easy】

摘要: 657. Judge Route Circle【easy】 Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which 阅读全文

posted @ 2017-09-23 18:51 LastBattle 阅读(167) 评论(0) 推荐(0) 编辑

606. Construct String from Binary Tree 【easy】

摘要: 606. Construct String from Binary Tree 【easy】 You need to construct a string consists of parenthesis and integers from a binary tree with the preorder 阅读全文

posted @ 2017-09-23 18:44 LastBattle 阅读(167) 评论(0) 推荐(0) 编辑

520. Detect Capital【easy】

摘要: 520. Detect Capital【easy】 Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a wo 阅读全文

posted @ 2017-09-23 18:23 LastBattle 阅读(289) 评论(0) 推荐(0) 编辑

28. Implement strStr()【easy】

摘要: 28. Implement strStr()【easy】 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of hayst 阅读全文

posted @ 2017-09-23 17:43 LastBattle 阅读(132) 评论(0) 推荐(0) 编辑

521. Longest Uncommon Subsequence I【easy】

摘要: 521. Longest Uncommon Subsequence I【easy】 Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings 阅读全文

posted @ 2017-09-23 17:36 LastBattle 阅读(94) 评论(0) 推荐(0) 编辑

344. Reverse String【easy】

摘要: 344. Reverse String【easy】 Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 解法 阅读全文

posted @ 2017-09-23 17:21 LastBattle 阅读(196) 评论(0) 推荐(0) 编辑

557. Reverse Words in a String III【easy】

摘要: 557. Reverse Words in a String III【easy】 Given a string, you need to reverse the order of characters in each word within a sentence while still preser 阅读全文

posted @ 2017-09-23 17:10 LastBattle 阅读(202) 评论(0) 推荐(0) 编辑

680. Valid Palindrome II【easy】

摘要: 680. Valid Palindrome II【easy】 Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1 阅读全文

posted @ 2017-09-23 16:56 LastBattle 阅读(642) 评论(0) 推荐(0) 编辑

125. Valid Palindrome【easy】

摘要: 125. Valid Palindrome【easy】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, 阅读全文

posted @ 2017-09-23 15:38 LastBattle 阅读(109) 评论(0) 推荐(0) 编辑

459. Repeated Substring Pattern【easy】

摘要: 459. Repeated Substring Pattern【easy】 Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copie 阅读全文

posted @ 2017-09-23 12:58 LastBattle 阅读(136) 评论(0) 推荐(0) 编辑