Oh! This one easy so let's write it in C to impress the interviewer who is used to see Python :D We are given a string of characters (like a sentence) and we need to return back the length of its last word.
On leetcode: https://leetcode.com/problems/length-...
Watch video Top Algorithm Interview Questions: The Length of the last word online without registration, duration hours minute second in high quality. This video was added by user Jadi 07 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 490 once and liked it 19 people.