Sollicitatievraag bij Microsoft

Write code that reverses words in a string.

Antwoorden op sollicitatievragen

Anoniem

8 dec 2016

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

1

Anoniem

20 feb 2019

print(string1[::-1])

Anoniem

30 dec 2016

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