Re:Americans no longer see four-year college degrees as wort...
by integralid on Sunday November 30, 2025 @02:19AM
(#46094555)
If someone doesn't know how to reverse words in a sentence they are absolutely not qualified to be a programmer. Yes they probably won't do this exact task often, but this is like a doctor that can't distinguish heart from the liver. It tells you something has gone horribly wrong.
[ Parent
| on HN ]
Re:Americans no longer see four-year college degrees as wort...
by ThunderSizzle on Sunday November 30, 2025 @07:26AM
(#46096100)
In many languages, the basic version can be just one line of code, if you know the right libraries to leverage. C# leveraging Linq, for example:
String.Join(" ",
String.Split(" ", sentence).Reverse()))
Re:Americans no longer see four-year college degrees as wort...
by chongli on Sunday November 30, 2025 @09:28AM
(#46096912)
What if the sentence is in Japanese (which doesn’t use spaces)?
Re:Americans no longer see four-year college degrees as wort...
by mghackerlady on Monday December 01, 2025 @01:42PM
(#46111232)
Japanese can use spaces and does in some contexts