CodingBat common_end answer - Python List 1

Published: 19 June 2021
on channel: Brendan Metcalfe
405
5

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:
   • Python String Methods - Tutorial Series  

💻 Python List Methods Course Playlist:
   • Python List Methods  

📖 Please check out my Udemy course here:
https://www.udemy.com/course/the-pyth...

⚙️ 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


Watch video CodingBat common_end answer - Python List 1 online, duration hours minute second in high quality that is uploaded to the channel Brendan Metcalfe 19 June 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 405 times and liked it 5 visitors.