Longest Common Prefix - LeetCode 14 - Coding Interview Questions

  Рет қаралды 8,665

One Code Man

One Code Man

Күн бұрын

Пікірлер: 10
@ВиталийБ-ж8я
@ВиталийБ-ж8я Жыл бұрын
THANKS A LOT MAN!!!
@onecodeman
@onecodeman Жыл бұрын
🙏
@masteradvisor594
@masteradvisor594 Жыл бұрын
Can we use sliding window on first and last string
@jupingng8637
@jupingng8637 Жыл бұрын
Vertica: Start with terse / pessimistic condition, and slowly relax. Horizontal: Start with relaxed / optimistic condition, and slowly constrain.
@MrSirr
@MrSirr Жыл бұрын
i dont understand in the horizontal prefix, what if the 1st word is different, [hello, flower, flight] wont it return "" since h != f ?
@onecodeman
@onecodeman Жыл бұрын
Hey Natan, for the Horizontal Prefix, the algorithm gonna take the length of the first word and use it as a limit for the second word for example Hello have length 4 so we gonna compare it to only the word flow and we gonna eliminate the two last letters, then its gonna keep doing the same thing each time reducing the last character and comparing, for your example its gonna return false, hope this help
@karunakarkoyada69
@karunakarkoyada69 Жыл бұрын
can u explain in javascript?
@onecodeman
@onecodeman Жыл бұрын
I will do it next time, but you can use the explanation in this video and try to convert it to JavaScript that will help you a lot, also that gonna help you to start solving problems quickly 🙏
@valorantintel7619
@valorantintel7619 Жыл бұрын
maghribi :D ? nadi
@onecodeman
@onecodeman Жыл бұрын
Thanks brother!
Cute
00:16
Oyuncak Avı
Рет қаралды 9 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 19 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 3,6 МЛН
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 379 М.
Longest Common Prefix - Leetcode 14 - Python
6:31
NeetCode
Рет қаралды 171 М.
Whiteboard Coding Interviews: 6 Steps to Solve Any Problem
15:18
Fullstack Academy
Рет қаралды 369 М.
Lecture 80: Longest Common Prefix Problem || Tries || C++ Placement Series
20:17
Longest Common Prefix | LeetCode problem 14
5:42
Technosage
Рет қаралды 32 М.
3Sum Closest - LeetCode 16 - Coding Interview Questions
6:26
One Code Man
Рет қаралды 2,2 М.
Fastest way to learn Data Structures and Algorithms
8:42
Sahil & Sarra
Рет қаралды 171 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,2 МЛН
Top 7 Data Structures for Interviews Explained SIMPLY
13:02
Codebagel
Рет қаралды 183 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 9 МЛН