CodingBat common_end answer - Python List 1

Опубликовано: 19 Июнь 2021
на канале: Brendan Metcalfe
376
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:


Python String Methods Course Playlist:


Python List Methods Course Playlist:


Please check out my Udemy course here:


️ Recommended Computer Gear:
- Macbook Pro 13"
- Macbook screen protector
- Macbook USB-C adapter
- Macbook case
- Foldable computer stand
- Airpods
- Pixel 3a
- Pixel 3a screen protector
- Lapel Mic
- Bluelight computer glasses
- Noise cancelling headphones
- JBL bluetooth speaker

️ Recommended Digital Nomad Gear:
- Shorts with zippers
- Silicone earplugs
- Sleep mask
- Packing cubes
- Sink plug
- Travel lock
- Nike sandals
- Nike freeruns
- Thin no-show socks
- Quest bars
- Incense
- Electronics organizer bag


Смотрите видео CodingBat common_end answer - Python List 1 онлайн без регистрации, длительностью 06 минут 55 секунд в хорошем hd качестве. Это видео добавил пользователь Brendan Metcalfe 19 Июнь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 376 раз и оно понравилось 5 людям.