filmov
tv
CodingBat common_end answer - Python List 1

Показать описание
CodingBat common_end answer - Python List 1
CodingBat Python List-1 common_end answer.
Timestamps:
0:00-0:11 Intro
0:12-0:24 The Question
0:25-0:54 Analyze Question
0:55-1:12 How to Slice a List in Python
1:13-2:00 How to Get First Element
2:01-2:53 How to Get Last Element
2:54-4:22 First Solution
4:23-5:10 Second Solution
5:11-6:31 Optimizing the Solution
6:32 Final Solution
common_end question:
Given 2 arrays of ints, a and b, return True if they have the same first element or they have the same last element. Both arrays will be length 1 or more.
common_end([1, 2, 3], [7, 3]) → True
common_end([1, 2, 3], [7, 3, 2]) → False
common_end([1, 2, 3], [1, 3]) → True
💻 Python String Methods Course Playlist:
💻 Python List Methods Course Playlist:
📖 Please check out my Udemy course here:
⚙️ Recommended Computer Gear:
✈️ Recommended Digital Nomad Gear:
CodingBat Python List-1 common_end answer.
Timestamps:
0:00-0:11 Intro
0:12-0:24 The Question
0:25-0:54 Analyze Question
0:55-1:12 How to Slice a List in Python
1:13-2:00 How to Get First Element
2:01-2:53 How to Get Last Element
2:54-4:22 First Solution
4:23-5:10 Second Solution
5:11-6:31 Optimizing the Solution
6:32 Final Solution
common_end question:
Given 2 arrays of ints, a and b, return True if they have the same first element or they have the same last element. Both arrays will be length 1 or more.
common_end([1, 2, 3], [7, 3]) → True
common_end([1, 2, 3], [7, 3, 2]) → False
common_end([1, 2, 3], [1, 3]) → True
💻 Python String Methods Course Playlist:
💻 Python List Methods Course Playlist:
📖 Please check out my Udemy course here:
⚙️ Recommended Computer Gear:
✈️ Recommended Digital Nomad Gear: