Question d’entretien chez Microsoft

Write code that reverses words in a string.

Réponses aux questions d'entretien

Utilisateur anonyme

8 déc. 2016

$string = "Write code that reverses words in a string" $words = $string -split " " [array]::Reverse($words) $words -join " "

1

Utilisateur anonyme

20 févr. 2019

print(string1[::-1])

Utilisateur anonyme

30 déc. 2016

string.split('').reverse().join('')