摘要:
题目描述: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" ret 阅读全文
posted @ 2018-01-09 16:19
zlz099
阅读(124)
评论(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: 阅读全文
posted @ 2018-01-09 15:39
zlz099
阅读(127)
评论(0)
推荐(0)
摘要:
题目描述: Write a function that takes a string as input and returns the string reversed. 思路: 逆序输出一个字符串第一种方法:从尾到头遍历原字符串,返回到result中。但提交提示超时了,给了一个巨长无比的测试用例。第 阅读全文
posted @ 2018-01-09 11:21
zlz099
阅读(106)
评论(0)
推荐(0)
摘要:
题目描述: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive 阅读全文
posted @ 2018-01-09 09:55
zlz099
阅读(146)
评论(0)
推荐(0)

浙公网安备 33010602011771号