CodingBat common_end answer - Python List 1

CodingBat common_end answer - Python List 1

Brendan Metcalfe

3 года назад

383 Просмотров

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

💻 common_end - link to original question on CodingBat.com:
https://codingbat.com/prob/p147755

💻 Python String Methods Course Playlist:
https://www.youtube.com/playlist?list=PL4eU-_ytIUt8Qa-90WL9LKTp8_4fvk6eS

💻 Python List Methods Course Playlist:
https://www.youtube.com/playlist?list=PL4eU-_ytIUt9vwky84Lp-5pK4ckzKbnTo

📖 Please check out my Udemy course here:
https://www.udemy.com/course/the-python-built-in-function-tutorial-series/

⚙️ Recommended Computer Gear:
- Macbook Pro 13" https://amzn.to/39ZGrTb
- Macbook screen protector https://amzn.to/3s2a9x3
- Macbook USB-C adapter https://amzn.to/3dRICtd
- Macbook case https://amzn.to/3wMJhVk
- Foldable computer stand https://amzn.to/2QeCi76
- Airpods https://amzn.to/324gPAs
- Pixel 3a https://amzn.to/2PJa1Wr
- Pixel 3a screen protector https://amzn.to/3mytvcf
- Lapel Mic https://amzn.to/39Vf2lx
- Bluelight computer glasses https://amzn.to/3dSCIId
- Noise cancelling headphones https://amzn.to/2QhAR80
- JBL bluetooth speaker https://amzn.to/3dVfLEv

✈️ Recommended Digital Nomad Gear:
- Shorts with zippers https://amzn.to/3wHEepf
- Silicone earplugs https://amzn.to/3wSSzQ3
- Sleep mask https://amzn.to/3d6AUw5
- Packing cubes https://amzn.to/3uCbaOc
- Sink plug https://amzn.to/2QeiSzf
- Travel lock https://amzn.to/3t2Zsf4
- Nike sandals https://amzn.to/3d65FRV
- Nike freeruns https://amzn.to/3fZRWhi
- Thin no-show socks https://amzn.to/39Wa8og
- Quest bars https://amzn.to/3s8eWxd
- Incense https://amzn.to/3dPfEKF
- Electronics organizer bag https://amzn.to/3tbn3KO

Тэги:

#codingbat_common_end #codingbat_common_end_answer #codingbat_python_common_end #codingbat_list_1_common_end_answer #codingbat_python_solutions #codingbat_python_answers #codingbat_common_end_solution #coding_bat_list_1_answers #codingbat_python #python_code_challenges #python_tutorial #coding_bat #codingbat_answers #codingbat_common_end
Ссылки и html тэги не поддерживаются


Комментарии: