3.0 of 5 113 reviews Beverly Hills, CA 500 to 999 Employees

MySpace Senior Developer Interview Question

I interviewed in Los Angeles, CA and was asked:
"In .net take a list of integers and return the smallest one there,"
Add Tags [?]
Answer Flag Question

Part of a Senior Developer Interview Review - one of 30 MySpace Interview Reviews

Answers & Comments

of 0
public int test1(int[] intArray) {
int x;
if(intArray.length == 0) {
  return -1; //no array passed in
   x = inArray[0];
  for(int i =1; i <= intArray.length; i++) {
    if( x <= intArray[i]) {
      x = intArray[i];
     return intArray[i];
- Interview Candidate on Jun 15, 2010 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 MySpace interview questions and advice. All interview reviews posted anonymously by MySpace employees and interview candidates.