上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页
摘要: 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 @ 2020-01-03 11:45 xuan_abc 阅读(115) 评论(0) 推荐(0)
摘要: Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Output: "holle" Example 2: Input: "le 阅读全文
posted @ 2020-01-03 11:40 xuan_abc 阅读(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 @ 2020-01-03 11:02 xuan_abc 阅读(120) 评论(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 @ 2020-01-02 12:13 xuan_abc 阅读(181) 评论(0) 推荐(0)
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word (last word means the last appea 阅读全文
posted @ 2020-01-02 11:46 xuan_abc 阅读(110) 评论(0) 推荐(0)
摘要: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Input: 3 Output: [ [ 1, 2, 3 ], [ 8, 阅读全文
posted @ 2020-01-02 06:15 xuan_abc 阅读(157) 评论(0) 推荐(0)
摘要: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string 阅读全文
posted @ 2020-01-02 05:04 xuan_abc 阅读(113) 评论(0) 推荐(0)
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two 阅读全文
posted @ 2020-01-02 04:45 xuan_abc 阅读(117) 评论(0) 推荐(0)
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, Dand M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two i 阅读全文
posted @ 2020-01-02 00:55 xuan_abc 阅读(124) 评论(0) 推荐(0)
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu 阅读全文
posted @ 2020-01-01 12:01 xuan_abc 阅读(96) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页