# CMU 15-112 - 200525 ###### tags: `Tutor` `CS` ## Learning Intention Using the summer time to get an idea of Big Data ^^ ## Homework - Decide which program would you wanna enroll - Program Homework2 sheet ### Coursera's Programs Based on our intention and mom's suggestions, we would like to enroll a CS program for school's credits and help our career. #### Options - [Google IT Automation with Python Professional Certificate](https://www.coursera.org/professional-certificates/google-it-automation#courses) - [IBM Data Science Professional Certificate](https://www.coursera.org/professional-certificates/ibm-data-science) - [Applied Data Science with Python Specialization](https://www.coursera.org/specializations/data-science-python) > By the way, it's okay for you to search for other cou ### Homework 2 - Write 'split()' function - Implement strStr() #### Split() function Write a function which does the same thing as 'split()'. Take HW problem 3's 2 sentences as an example. #### Implement strStr() Implement strStr(). Write as a function. Return the index of the first occurrence of 'needle' in 'haystack', or -1 if needle is not part of haystack. > >Example 1: > >Input: haystack = "hello", >needle = "ll" >Output: 2 > > >Example 2: > >Input: haystack = "aaaaa", >needle = "bba" >Output: -1 > ***Question:*** 1. Input: haystack = "heaven" neddle ="ea" 2. Input: haystack = "sunny" needle = "ny" ***Discuss:*** What should we return when needle is an empty string?