LeetcodeOJ_51CTO博客
unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to searc
原创 2022-09-08 20:34:33
92阅读
试题请參见:https://oj.leetcode.com/problems/longest-common-prefix/题目概述Write a function to find the longest common prefix string amongst an array of strings...
试题请參见:https://oj.leetcode.com/problems/string-to-integer-atoi/题目概述Implement atoi to convert a string to an integer.Hint:Carefully consider all possibl...
转载 2016-01-08 18:48:00
22阅读
2评论
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Clarification:What constitutes
转载 2022-09-09 00:15:30
31阅读
见问题:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/主题概述Given a binary tree, find its maximum depth.The maximum depth is the number of n...
转载 2015-06-29 10:36:00
66阅读
2评论
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Clarification:What constitutes
原创 2022-09-09 00:15:24
83阅读
Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted
原创 2022-09-09 00:14:48
39阅读
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The fun
原创 2022-09-09 00:15:38
60阅读
Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in plac
原创 2022-09-08 20:34:25
70阅读