• ###### P90xcommented on "Reverse words" java solution

What's wrong with my code?

• ###### connanz1234commented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution

Does it?

• ###### pikadencommented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution

• ###### mindgames7commented on "Reverse words" java solution

that is clever! thanks ^_^

• ###### k0nxzcommented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution

• ###### Wavey1287commented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution

• ###### andmalenkocommented on "Reverse words" java solution

I don't understand how this code solve "double space" problem?

• ###### murakascommented on "Reverse words" java solution

What if there are multiple gaps?

• ###### dllkcommented on "Reverse words" java solution

The solution doesn't retain spaces at the end of the string.
String given = "abcd ";

• ###### OCompiledcommented on "Reverse words" java solution

Time Complexity: O(n)
Space Complexity: O(n)
Great Job!

• ###### prsmithcommented on "Reverse words" java solution

If N is the number of words in the original string. Then this version requires 3N+2 array allocations.

• ###### rootntcommented on "Reverse words" java solution

your solution can't pass this test:

`assertEquals("elbuod decaps ta eht dne ", Kata.reverseWords("double spaced at the end "));`

• ###### BenjaminUrquhartcommented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution

• ###### Blind4Basicscommented on "Reverse words" java solution

This comment is hidden because it contains spoiler information about the solution