---
title: "Discussion on \"DSA Day 94/100\" | Hashnode"
description: "Discussion on \"DSA Day 94/100\". Topic: Strings\n1) Length of last wordEasy\n\nInput: s = \"   fly me   to   the moon  \"\nOutput: 4\nExplanation: The last word is \"moon\" with length 4.\n\npublic class lengthoflastword {\n        public static int lengthOfLastWord(String s) {\n            Stri..."
url: "https://hashnode.com/posts/dsa-day-94100/6509de8caca0197866b36e98"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DSA Day 94/100](https://preetikaprakash.hashnode.dev/dsa-day-94100?utm_source=hashnode&utm_medium=feed)

Topic: Strings 1) Length of last wordEasy Input: s = " fly me to the moon " Output: 4 Explanation: The last word is "moon" with length 4. public class lengthoflastword { public static int lengthOfLastWord(String s) { Stri...

Sep 19, 2023 · 1 min read · preetikaprakash.hashnode.dev  
Read the article

-   [#strings](https://hashnode.com/tag/strings)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#geeksforgeeks](https://hashnode.com/tag/geeksforgeeks)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Preetika Prakash](https://hashnode.com/@preetikaprakash)

@preetikaprakash · India

  
[View profile](https://hashnode.com/@preetikaprakash)

Attempting #100DaysofCode challenge | Open Source Contributor

Attempting #100DaysofCode challenge | Open Source Contributor

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
