上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页
摘要: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
posted @ 2019-04-11 10:55 MarkLeeBYR 阅读(106) 评论(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: Example 2: Note: class Soluti 阅读全文
posted @ 2019-04-11 10:53 MarkLeeBYR 阅读(76) 评论(0) 推荐(0)
摘要: Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2019-04-11 10:53 MarkLeeBYR 阅读(85) 评论(0) 推荐(0)
摘要: nitially, 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 tothe orig 阅读全文
posted @ 2019-04-11 10:52 MarkLeeBYR 阅读(91) 评论(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 @ 2019-04-09 17:50 MarkLeeBYR 阅读(111) 评论(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 @ 2019-04-09 17:49 MarkLeeBYR 阅读(103) 评论(0) 推荐(0)
摘要: 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 word to be right when one of 阅读全文
posted @ 2019-04-09 17:48 MarkLeeBYR 阅读(159) 评论(0) 推荐(0)
摘要: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2019-04-09 17:46 MarkLeeBYR 阅读(130) 评论(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 the rans 阅读全文
posted @ 2019-04-09 17:08 MarkLeeBYR 阅读(104) 评论(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:Given s 阅读全文
posted @ 2019-04-09 17:07 MarkLeeBYR 阅读(88) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页