Scala:

string.split(" ").reverse.reduceLeft(_ + " " + _)

2011/4/23 João Víctor Rocon Maia <[email protected]>

> http://code.google.com/codejam/contest/dashboard?c=351101#s=p1
> my solution(Python):
>
> n = int(raw_input())
>
> for i in range(1, n+1):
>     words = raw_input().split(' ')
>     print "Case #%d:" % (i),
>     for i in words[::-1]:
>         print i,
>     print
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to