Question d’entretien chez BlackRock

Inverse a sentence.

Réponses aux questions d'entretien

Utilisateur anonyme

28 janv. 2015

Reverse complete sentence as string reverse. Then reverse every word in it (using two variable i and j for index to hold one word, we can find word when we encounter space). Runtime O(n) + O(n) where n is length of string. no extra space required, everything is happening in-place

1

Utilisateur anonyme

7 août 2014

Tokenize the string... put each token in a stack... pop the stack and print it.

Utilisateur anonyme

31 janv. 2013

Just go through the sentence...