Google Interview Question for Software Engineer / Developers


Country: Israel
Interview Type: In-Person




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

More details please..were you expected to solve an arithmetic equation of type 10A+20B = X etc?

- Roxanne December 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I am assuming that it would be expecting expressions say:
P+30 (exceed pressure by 30 P)
S-10 (reduce speed by 10) and so on...

- Amit Petkar December 30, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Indeed

- GeorgyBoy December 31, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Ya @amitpetkar ji, for that we need to put some constant value for s and p right? so that we can exceed or reduce the speed n pressure by giving the expression as u noted, p+30..but its not user friendly at any way..

- vikimanish January 01, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Vikimanish... We could have expressions as :
P=30 (Set pressure to 30 PSI)
S=10 (Set speed to 10) n so on.
At the start of system, we could assume those values as 0.
And as far as "user-friendly" is concerned, it is the expected requirement; so cannot help it.

- Amit Petkar January 02, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Moreover there should be a global way of storing them, you may want to remember the earlier state of the system before actually executing the newer values. Perform sufficient checks to ensure that pressure and speed are always positive at any given time (real time scenario). If the state of the system changes to negative values after performing the operation we may simple raise error.

- gravityrahul January 02, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It's a calculator and need compling technique. Use yacc to generate the lexical and grammar parsers. 'Parameters' are variables(look it up in a global symbol table), and reserve operators and write regular expressions for constants.

- henryadam January 07, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The intent of the problem is probably for you to implement a shunting-yard algorithm to convert an arithmetic expression from in-fix to post-fix and then to evaluate the post-fix expression. Quite a tricky exercise for a short interview, although standard material from a CS degree.

- nilkn January 12, 2014 | Flag Reply


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