## ThoughtWorks Interview Question for Web Developers

• 0

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.

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

nice

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

beautiful soln knap

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

Brilliant

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

best solution!

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

you should be a good tetris player

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|

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

Excellent, brilliant solution

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

excellent

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

Great solution knap...

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

brilliant sol...

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

Great Solution

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

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

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

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

Need a single cut so ur solution wont be suitable

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|``````

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

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

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

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!!!

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

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

and press enter

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

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

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

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

Comment hidden because of low score. Click to expand.
-2
of 2 vote

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

_______________12____________________
| _________|cut part|

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.

### 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.