摘要:You are to write a program that has to decide whether a given line segment intersects a given rectangle. An example: line: start point: (4,9) end poin
阅读全文
摘要:Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top s
阅读全文
摘要:We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no in
阅读全文
摘要:Given n segments in the two dimensional space, write a program, which determines if there exists a line such that after projecting these segments on i
阅读全文
摘要:Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza a rectangular box to put
阅读全文