SendMe Mobile
Work in HR? Unlock Free Profile

SendMe Mobile Software Engineer Interview Question

I interviewed in San Francisco, CA and was asked:
"rewrite the get() method so it does not use an if statement. abstract class <T> { private bool computed; private T value; abstract T get() { if (!computed) { value = computed(); computed = true; } return value; } abstract public T computed(); }"
Add Tags [?]

Part of a Software Engineer Interview Review - one of 3 SendMe Mobile Interview Reviews

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.