Length of Last Word | LeetCode 58 | C++, Java, Python

preview_player
Показать описание

**** Best Books For Data Structures & Algorithms for Interviews:**********
*****************************************************************************

September LeetCoding Challenge | Problem 15 | Length of Last Word | 15 September,
Facebook Coding Interview question,
google coding interview question,
leetcode,
Length of Last Word,
Length of Last Word c++,
Length of Last Word Java,
Length of Last Word python,
Length of Last Word solution,
58. Length of Last Word,

#CodingInterview #LeetCode #Google #Amazon
Рекомендации по теме
Комментарии
Автор

awesome... your way of explanation is really very amazig and help me to get problem and develop my way logical thinking hopefully you complete this series
it is really valuable and useful

moayyadarz
Автор

Great teaching, thankyou On Uploading Sir

harshitrathi
Автор

Great answer and logic solving comparing to others. thank you

leninsingh
Автор

Sir such a talented lecturer..u r...👏👏👌👌

posamnarmada
Автор

good explanation sir, Which compiler your using executing the program's, iam able to see the how much time it will take the program to execute. ...

sureshonteru
Автор

Sir can you please make more videos on DP

AvinashKumar-pstw
Автор

word = [str(i) for i in input().split()]
print(len(word[-1]))

AvinashKumar-pstw
Автор

Why are you returning result in line number 15 at 6:08

MayankKumar-nnus
Автор

class Solution {
public:
int lengthOfLastWord(string s) {

int count = 0;
if(s[0]==' ')
return 0;

for(int i=s.length()-1;s[i] !=' ';i--)
{
if(s[i]==' ')
continue;
else
count++;
}

return count;
}
};can anyine tell what i did wring..showing runtime error

PrinceSharma-jgmh