Robot Programming puzzle




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

AOL account setting +1-800-893-9752
It is very important to have latest and updated AOL account setting. If you are not on updated AOL account settings then you will not be able to send or receive email on your device or no matter any third party email software or client you may use.
To get latest and update setting for your AOL account you can contact AOL support on Toll-free +1-800-893-9752
contact aol member services, aol support phone number usa, aol email support phone number, aol email tech support number, aol email customer service number, aol email customer support, aol customer support telephone number, aol technical support contact number, aol com customer service phone number, download aol mail to computer, Aol email support phone number, aol gold desktop download, aol mail tech support number, aol mail hotline number, aol mail toll free number, contact aol mail support number, aol customer service number, aol support phone number, aol support number, aol mail repair

- ap2ankur May 23, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Find total L - total R, ignoring the ?.

If negative, turn all the ? into R, else L.

- Anonymous May 22, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

this will not work at all and we have to find the max reach
We have to find the maximum displacement by the robot.
have some tese cases you will find this method will not work out

- unknown May 22, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Max reach vs max final position. You are right unknown, this answer is dealing with max final position, not max reach.

- Anonymous May 22, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@unknown: You should realize though, the problem was misinterpreted... Asking to "have some test cases" will not help.

- Anonymous May 22, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

(of course, what max reach means is a bit ambiguous, but your interpretation makes the problem more interesting)

- Anonymous May 22, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@anonymous: suppose replace L with -1 and R with 1.
Example
LRLLR
-1,1,-1,-1,1
so max reach will be 2 in left side. So we need just max reach. But we have some question marks also which can be anything left or right.

- unknown May 22, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@unknown: Now I think you have a reading comprehension problem. Anyways...

- Anonymous May 23, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Anonymous: lolz dude...its better to focus on problem

- unknown May 27, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Isn't the answer = Max ( max reach when ? = L, max reach when ? = R )

- volodymyr.zubariev June 05, 2013 | Flag




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