Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
题目大意:实现一个子串查找函数
[……]
Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
题目大意:实现一个子串查找函数
[……]
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0?
Find all unique triplets in the array which gives the sum of zero.
题目大意:找到三个数的和为0.
[……]
这里会直接给出Demo代码,做简单讲解。
[……]