A collection of
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed.