Length of Last Word - LEETCODE In 4K (Python)
Автор: Peter Hu
Загружено: 2021-10-04
Просмотров: 95
Описание:
Length of Last Word LeetCode solutions. Explanation of different Python solutions to the common technical interview question: LeetCode #58 Length of Last Word.
In this video, I will explain 2 Length of Last Word LeetCode solutions using Python. I will also be explaining some unique Python language features along the way. Hope you enjoy!
Link to problem:
https://leetcode.com/problems/length-...
Problem Description:
Given a string s consisting of some words separated by some number of spaces, return the length of the last word in the string. A word is a maximal substring consisting of non-space characters only.
Timestamps:
0:00 Solution
2:06 One-line Solution (Pythonic)
2:23 Complexity Analysis
Find me on these platforms:
🖥 Github: https://github.com/PeterBohai
⚔️ Codewars: https://www.codewars.com/users/Pete_Hu
📝 Linkedin: / peterbohai
#python #coding #leetcode
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: