随笔分类 - 细节题
摘要:1.题目描述 Implement int sqrt(int x). Compute and return the square root of x. 2.解法分析...
阅读全文
摘要:1.题目描述 Given a number represented as an array of digits, plus one to the number. 2.解法分析 不要被常规思路限制住,常规思路会遍历整个数组...
阅读全文
摘要:1.题目描述 Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2...
阅读全文
摘要:1.题目描述 Divide two integers without using multiplication, division and mod operator. 2.解法分析 不用乘除求模运算,一个很容易让人想到的就是用...
阅读全文
摘要:1.题目分析 Write a function to find the longest common prefix string amongst an array of strings. 2.解法分析 最近的几个leetcod...
阅读全文
摘要:1.题目描述 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If yo...
阅读全文
摘要:1.题目描述 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could ...
阅读全文
摘要:1.题目描述 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 ...
阅读全文