Skip to content

late-night coding#19

Open
Zeta1313 wants to merge 2 commits intogrc-cohort-22:mainfrom
Zeta1313:main
Open

late-night coding#19
Zeta1313 wants to merge 2 commits intogrc-cohort-22:mainfrom
Zeta1313:main

Conversation

@Zeta1313
Copy link
Copy Markdown

@Zeta1313 Zeta1313 commented Apr 9, 2026

No description provided.

Copy link
Copy Markdown

@auberonedu auberonedu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I'll give credit this time, but please in the future make sure to be making more frequent commits (for something like this at least one per method) to get credit. Also, please see the comment below.

Comment thread src/Practice.java
Comment on lines +41 to +46
String output = "pneumonoultramicroscopicsilicovolcanoconiosis";
for (String x : words) {
if (x.length() < output.length() || (x.length() == output.length() && x.compareTo(output) < 0)) {
output = x;
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would happen if our shortest word was "bababadalgharaghtakamminarronnkonnbronntonnerronntuonnthunntrovarrhounawnskawntoohoohoordenenthurnuk" (the first 100-letter-long thunderword in the modernist classic "Finnegans Wake")? Can you think of how you could change your code to be more robust?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants