Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the most difficult code you ever wrote, ??? just for fun

Status
Not open for further replies.

RMG112

Technical User
Jan 14, 2002
17
US
I wanted to just see peoples responce if any at all to the most difficult code they ever wrote. please feel free to disregard this thread if you feel it's foolish. i thought it would be interesting..
 
Well, the worst code I had to write was when I was taking a class on Cryptography/Complexity Theory. That I wont even get into as it brings me to tears LOL. The next in line would have to be writing up code in c++ to handle large numbers like the BigInt class of Java. Once again in the lines of math, I had to compute 1000! (thats factorial) plus Permutations/Combinations. It was fun but mind blowing to a college student. Finite State Machines were difficult in the beginning but I proved alot of homework assignments with them :). Last but not least was a program where you were given the for corners of a rectangle on a graph and you had to compute the total area encapsulated inside the rectangle. Well... that was easy. Next came the hard part. Given 10000 rectangles, some overlapping, some not, some completely encased within another rectangle, some not. Find the total area covered by the rectangles. This proved more challengeing and I believe I did it by taking the highest point on the y axis and moving down towards the lowest point on the axis found all the points of interseciton. From there i built a table of intersections and used that to determine the final total area.

Matt

P.S. Thanx for bringing up the memories X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top