ThoughtWorks Interview Question for Web Developers






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

Assuming each square piece being of 1 x 1 size and a normal co ordinate system. Draw a vertical line from (0,1) to (4,1) then to ((4,2) and then all the way up to (8,2). Slide the pieces to fit.

- knap August 07, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

nice

- 003 September 08, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

beautiful soln knap

- Anonymous September 19, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Brilliant

- V January 11, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

best solution!

- John July 18, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

you should be a good tetris player

- shiva November 27, 2013 | Flag
Comment hidden because of low score. Click to expand.
2
of 2 vote

knap's soln is the best:
_ _ _ _ _ _ _ _
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|

_ _ _ _ _ _ _ _
|1|1|1|1|1|1|1|1|
|1|1|1|1|_ _ _ _
_ _ _ _|2|2|2|2|
|2|2|2|2|2|2|2|2|

_ _ _ _ _ _ _ _ _ _ _ _
|1|1|1|1|1|1|1|1|2|2|2|2|
|1|1|1|1|2|2|2|2|2|2|2|2|

- Mithun July 16, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Excellent, brilliant solution

- Shravan Kumar June 28, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

excellent

- Amnah December 14, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Great solution knap...

- Anonymous October 19, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

brilliant sol...

- Anonymous October 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Great Solution

- Killer March 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

ignore all above solution:

Good Answer: Cut 4 pieces of length 3 along the edge of length 8.
Align them horizontally. 4x3=12 and 4 pieces along length 8 is size 2 each

- ap January 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

to make clear
3 vertical original
8 horizontal original
cuts are shown
_________________________
| | | | |
_________________________

- ap January 20, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Need a single cut so ur solution wont be suitable

- Genius July 31, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

knap's soln is the best:

_ _ _ _ _ _ _ _
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|

 _ _ _ _ _ _ _ _
|1|1|1|1|1|1|1|1|
|1|1|1|1|_ _ _ _
 _ _ _ _|2|2|2|2|
|2|2|2|2|2|2|2|2|

 _ _ _ _ _ _ _ _ _ _ _ _
|1|1|1|1|1|1|1|1|2|2|2|2|
|1|1|1|1|2|2|2|2|2|2|2|2|

- Anonymous July 16, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

knap .......wat a solution man ....very good

- srk July 29, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

knap bhai...meko tera solution samaj mai nahi aya..kya batana cah raha hai kuch pale nahi pada...box cahiye kitne..yeh hi bata de!!!

- gujjar August 02, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

/photo.php?fbid=2316182755067&set=a.1624763790025.89253.1564414250&type=1&theater

- Anonymous August 24, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

write wwwfacebookcom before the above thing in your address bar
and press enter

- Anonymous August 24, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

_________________________ __________________12_______________
| ______________| ==== | _________| |2
|__________|@4 cut part |3 |__________________|_________________|
|_________________________|
8

- Anonymous December 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

_________________________ __________________12_________________
| ______________| | _________| |2
|__________|@4 cut part |3 |__________________|_________________|
|_________________________|
8

- Ramsri Goutham December 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

____________8____________
| ______________|
|__________|@4 cut part |3
|_________________________|

==> Final answer


_______________12____________________
| _________|cut part|
|__________________|_________added____| 2

- Ramsri Goutham December 25, 2010 | 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