EMC
3.5 of 5 1,628 reviews
www.emc.com Hopkinton, MA 5000+ Employees

EMC Software Engineer Interview Question

"was asked about perm gen in java."
Add Tags [?]
Answer Flag Question

Part of a Software Engineer Interview Review - one of 410 EMC Interview Reviews

Answers & Comments

0
of 0
votes
public class Permutation
{
    stringBuilder output;
    String input;
    boolean used[];

    public Permutation(String in)
    {
        this.input = in;
        output = new StringBuilder();
        used = new Booolean[n];
    }

    public void Permute(String in)
    {
        if(in.length() == output.length())
        {
            print(output.toString());
        }
        for(int i=0;i<in.length; i++)
        {
            output.append(input.charAt(i));
            used[i] = true;
            permute(in.substring(i));
            used[i] = false;
            output.setLength(output.length() - 1);
        }
    }
}
- Zahid on Nov 29, 2013 Flag Response

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


EMC – Why Work for Us?

A passion for learning, innovating and success EMC is a global leader in enabling businesses and service providers to transform their operations and deliver information technology as a service (ITaaS). Fundamental to… Full Overview

Provided by employer [?]

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

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