[004]LeetCode 28 實現strstr()

028. Implement strStr()(Easy)

Implement strStr().

Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.


[048] LeetCode 169演算法【Majority Element】 求多數元素

169. Majority Element (Easy)

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.


[049] LeetCode 229演算法【Majority Element II】 求多數元素 II

229. Majority Element II (Medium)

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

Leetcode 演算法教學
Leetcode 演算法教學
Fix all leetcode problems
More information
Followers
720