随笔分类 - 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
阅读全文
摘要:Implement strstr() 实现strstr函数功能 whowhoha@outlook.com Question: Implement strstr(). Returns the index of the first occurrence of needle in haystack, or
阅读全文
摘要:Valid Palindrome回文数 whowhoha@outlook.com Question: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignor
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号