Microsoft

  www.microsoft.com
  www.microsoft.com

Interview Question

Intern Interview(Student Candidate) Blacksburg, VA

You are given an array with a null value on each end of the

  array. The array is populated with a random string (for instance "aabbca"). You must integrate through the array from each end and count the number of specific characters in the array.
Answer

Interview Answer

1 Answer

0

parse the array, put the values into a hashset, in the end, get a count of elements in the set.

Jeevan on Oct 10, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.