Pergunta de entrevista da empresa Microsoft

How to reverse a string

Resposta da entrevista

Sigiloso

12 de mar. de 2012

using System; using System.Linq; namespace LinkeListShuffle { class Program { static void Main() { const string givenString = "one one two two three four"; var reversedString = string.Join(" ", (givenString.Split(' ').Reverse())); Console.WriteLine(reversedString); } } }