Microsoft Interview Question for Software Engineer in Tests


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
1
of 1 vote

ublic class CheckPatternFailPass {
	public static void checkFailPass(String st) {
		int n = st.length();
		for(int i =0 ; i < n ; i++) {
			switch(st.charAt(i)) {
			case 'p': System.out.println("pass"); break;
			case 'f':System.out.println("fail");break;
			case 'b' : System.out.println("block"); break;
			default : System.out.println("unknown"); break;
			
			}
		}
	}
	
	public static void main(String args[]) {
		String st = "pppppppfffffbbbbbuuuuub";
		checkFailPass(st);
		
	}

}

- codingForFun December 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 2 vote

Dumb Mr. Rahul, try to write code for this coding (not algo) for best time and space complexity and then comment irresponsibly, without understanding problem don't be rude to questions, this forum is to share solutions to learn mutually and help each other.

- Brainless UK and Rahul are dump a s s November 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

String s1="pppppppfffffbbbbbuuuuu";
        Map<Character, Integer> cmap=new HashMap<> ();
        for (int i=0; i<s1.length();i++)
        {
            char c=s1.charAt(i);
            if(Character.isAlphabetic(c))
            {
                if(cmap.containsKey(c))
                {
                    cmap.put(c,cmap.get(c)+1);
                }
                else
                    cmap.put(c,1);
                
            }
        }
       
        System.out.println(cmap+"\t");

- wolfengineer November 06, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 9 vote

I don't think MS can ask this kind of easy question.

- Rahul November 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
2
of 4 votes

fffffffuuuuuuu

- Anonymous November 01, 2013 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Guys, don't fight, and stop abusing. I thought we are here to learn and help each other. I posted question to help people. I don't control what an interviewer is asking and personal opinion "Only idiots can assume caliber of company based on one question". Some of the comments made by folks here are against one of the best company in world. I wish they are never allowed to even attend tech interview's as people who cant respect a companies are not worth getting hired. They should be asked to work in alternate. In my experience in software world, it is not coding skills which makes you succeed but its mix of soft skills + coding skills which makes a person successful. Respect each and every company and questions. If you are so smart then what the fu** you have accomplished in your own life, how many interview's you cracked, whats your position in your company, who the fu** you are in this software world, anyone knows you or writes article on you.. don't take it personally but have a open minded attitude.. get right attitude first then only you can succeed in life. I am leaving this forum because of some idiots and lousy moderations of this website. There are many other forums where comments are moderated and I am better of their with educated people.

- Jack Williams November 03, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 votes

"I am better of their with educated people". Priceless.

I bow to thee. Thy are THE high troller supreme.

- Anonymous November 04, 2013 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Subbu is Jack

- l337coder November 04, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 4 vote

highschool homework I think (please no alg, they asked for coded solution)
this place is garbage lately

- S O U N D W A V E November 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

Will you write some code or show dumb-s ... did u complete high school or was sent back home cleaning a-s-s, show code and folks can see how good are ppl who call a question simple... rofl.. show us what you got as coding skill than talking brain less...

- Dumb-s Brainless UK November 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More