Programming creativity challenge: draw a ladder
2 01 Mar 2017 22:09 by u/roznak
In response to these stupid white board questions that interviews will ask: "Draw a ladder" Show us your creativity that will fail their written answer test:
- Left line, right line then the sports in between.
- Left T rotated 90 degrees, flip to right now repeat until the bottom.
- Load image from file, then clone and flip until the bottom.
- Draw left side, then clone flip to the right side
- Draw one big rectangle the size of the ladder, then cut square holes in between the sports.
Your turn.... Impress us.
7 comments
2 u/Stavon 01 Mar 2017 22:59
yes H0 u/J_Darnley 02 Mar 2017 13:58
Nice, but I think I need a taller H. My ladder has a few gaps.
1 u/Stavon 02 Mar 2017 18:37
yes '|-|'0 u/roznak [OP] 02 Mar 2017 17:26
0 u/effusive_ermine 01 Mar 2017 22:40
It's impossible. Ladder-like shapes may be described mathematically, but "drawing" is a side effect. (I'm only half joking.)
0 u/roznak [OP] 02 Mar 2017 17:29
I think we can also do a Phyton script that executes a Google image search on ladders and display that result.
0 u/roznak [OP] 05 Mar 2017 21:00
How about drawing a ladder with a pencil? I just realized that the question did not state that I have to program it into code.