
Description
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
My Solution
Python
1 |
class (object): |
- 想法:遍历
Best Solution
Python (Simpler my solution)
1 |
class (object): |

Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
1 |
class (object): |
1 |
class (object): |
近期评论