BlackRock
3.2 of 5 597 reviews
www.blackrock.com New York, NY 5000+ Employees

BlackRock Summer Analyst Interview Question (student candidate)

"Reverse a string in java."
Add Tags [?]
Answer Flag Question

Part of a Summer Analyst Interview Review - one of 394 BlackRock Interview Reviews

Answers & Comments

0
of 0
votes
Neeraj Kulkarni of Bloomberg Law Ke Ma Ke Chooth

class ReverseString {
  public static String reverseIt(String source) {
    int i, len = source.length();
    StringBuffer dest = new StringBuffer(len);

    for (i = (len - 1); i >= 0; i--)
      dest.append(source.charAt(i));
    return dest.toString();
  }
}
- Neeraj Kulkarni Ke Ma Ke Chooth on Jun 8, 2011 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 BlackRock interview questions and advice. All interview reviews posted anonymously by BlackRock employees and interview candidates.