VMware
3.4 of 5 1,237 reviews
www.vmware.com Palo Alto, CA 5000+ Employees

VMware Senior Member of Technical Staff Interview Question

I interviewed in Palo Alto, CA and was asked:
"How do you reverse print a string. After answering the same by providing an out of the box API, the next unexpected question was "What if it does NOT exist". While and 2nd alternative was provided, it was pretty much shot down as being not acceptable."
Add Tags [?]
Answer Flag Question

Part of a Senior Member of Technical Staff Interview Review - one of 412 VMware Interview Reviews

Answers & Comments

0
of 0
votes
Use String tokenizer, dump to array and print the array in reverse. However, the prompt response to that answer was "What if there is NO stringtokenizer?" Stringtokenizer is an Out Of The Box API in java.util.
- Interview Candidate on Aug 1, 2012 Flag Response
0
of 0
votes
maybe try something like this
StringBuilder sb = new StringBuilder(str);
sb.reverse();
- Anonymous on Oct 31, 2012 Flag Response
0
of 0
votes
string.split('').reverse().join('');
- Munib on Dec 2, 2013 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at VMware interview questions and advice. All interview reviews posted anonymously by VMware employees and interview candidates.