随笔分类 -  leetcode练习

leetcode 算法练习
摘要:Reverse Words in a String 单词取反 whowhoha@outlook.com Question: Given an input string s, reverse the string word by word. For example, given s = "the sk 阅读全文
posted @ 2016-08-06 09:03 whowhoha 阅读(183) 评论(0) 推荐(0)
摘要:Implement strstr() 实现strstr函数功能 whowhoha@outlook.com Question: Implement strstr(). Returns the index of the first occurrence of needle in haystack, or 阅读全文
posted @ 2016-08-06 09:02 whowhoha 阅读(147) 评论(0) 推荐(0)
摘要:Valid Palindrome回文数 whowhoha@outlook.com Question: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignor 阅读全文
posted @ 2016-08-06 09:01 whowhoha 阅读(133) 评论(0) 推荐(0)
摘要:Two Sum II – Input array is sorted whowhoha@outlook.com Question: Similar to Question [1. Two Sum], except that the input array is already sorted in a 阅读全文
posted @ 2016-08-06 09:00 whowhoha 阅读(230) 评论(0) 推荐(0)
摘要:Question: Design and implement a TwoSum class. It should support the following operations: add and find. add(input) – Add the number input to an inter 阅读全文
posted @ 2016-08-06 09:00 whowhoha 阅读(113) 评论(0) 推荐(0)
摘要:leetcode 练习1 two sum whowhoha@outlook.com 问题描述 Given an array of integers, return indices of the two numbers such that they add up to a specific targe 阅读全文
posted @ 2016-08-04 20:25 whowhoha 阅读(122) 评论(0) 推荐(0)