Showing posts with label teche. Show all posts
Showing posts with label teche. Show all posts

Wednesday, April 1, 2009

Go Dutch Episode III

The Go-Dutch Episode III has been just announced!
Scheduled for the 17th of April,2009 it gives the participants with enough room this time to do their home work and prepare for the events.
Event list? Yes, it remains almost the same:
  1. Deep Dive: 1 hour 30 minutes
  2. Wall Breaker: 30 minutes
  3. Patiala Peg: 30 minutes
  4. Code Jam: 30 minutes
Keep watching for more updates on the same! :)

Happy Dutching!

Friday, September 26, 2008

Lets get the code flowing... CodeJam....

I wonder on one thing, if its code flowing all around... why christen it as CodeJam?
(I know... might be a bad one... but thats how we are.... atleast the two of us blogging here...)

The code jam is up... and I see 2 good questions.... I thought all this while that it would be tough.... lets see how it shapes up!

With 15 minutes to solve them, here are the questions.....
Problem 1:

Given the Top-Right (x1,y1) and Bottom-Left (x2,y2) integer co-ordinates of two Rectangles parallel to the X-Y axes, Write a program to find the area of the rectangle formed by the intersection of the two given Rectangles.

Note:

  • The co-ordinate system is such that x increases from left to right, and y increases from bottom to top.
  • If the rectangles are non-intersecting, then the area is 0.
  • If one rectangle is contained inside another, the area of intersection is the area of the smaller rectangle. Else If the two rectangles share a common edge and have no common area, then also the area (output of your program) is 0.

Input Definition:

  1. On the first line, x1 y1 x2 y2 for the first rectangle
  2. On the second line, x1 y1 x2 y2 for the second triangle

Output:

  1. A single value representing the area of the intersection of the given rectangles

Problem 2:

Given an NxM Grid (N rows and M columns) find the number of rectangles that are there on the grid. Assume the grid to be having a coordinate system with bottom-left corner as the origin (0,0). Write program to Output the coordinates of the left-top and right bottom vertices of each of the rectangles in a sequential order.

Input :-

value of N and M on the same line, in a file or on the console.
e.g. 8 8

Output :-

(x11, y11) (x12, y12) |--> top left and bottom right vertex of the first rectangle

(x21, y21) (x22, y22)

:

:

(xr1, yr1) (xr2, yr2) | where r is the no. of rows of output (total no. of rectangles).

e.g. for input 8 8 output would be:-

1296

(0, 0) (1, 1)

(0, 0) (1, 2)

(0, 0) (1, 3)

:

(1, 1) (8, 8)

:

(M, N) (M+1, N+1) or (8, 8) (9, 9) | total 1296 rows of coordinates.

Software Design Concepts by 'the' Aditya

The next speaker is Aditya Chadha, from Naukri who's here to speak on Software Design Methodology.
For everyone who's never met him, he's one of the best examples of the arguementative Indian.
Aditya unstoppably talks about Design, requirement representation (constraint identification and the likes),Componentization and Orthogonality.

First Deep Dive

The shiksha guys... Puneet Aggarwal & Vibhu Bhushanare here to share the gyan!
Talking about crawlers and extraction using various analysis techniques
viz. Classification models, Concentration Ratio Analysis etc...
Well started... and nicely done!

Opening take

The first Go Dutch event has finally been flagged off!
Hope it goes well!