-
as seen on Programmers
- Search for 'Programmers'
Here's a pretty simple idea, in this pastebin I've posted some pair of numbers. These represent Nodes of a unidirected connected graph.
The input to stdin will be of the form, (they'll be numbers, i'll be using an example here)
c d
q r
a b
d e
p q
so x y means x is connected to y (not viceversa)
There…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Last year (2009), the Google Code Jam featured an interesting problem as the first problem in Round 1B: Decision Tree
As the problem seemed tailored for Lisp-like languages, we spontaneously had an exciting codegolf here on SO, in which a few languages managed to solve the problem in fewer characters…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Here's a pretty simple idea, in this pastebin I've posted some pair of numbers. These represent Nodes of a directed graph. The input to stdin will be of the form, (they'll be numbers, i'll be using an example here)
c d
q r
a b
b c
d e
p q
so x y means x is connected to y (not viceversa)
There…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys, I just finished participating in the 2009 ACM ICPC Programming Conest in the Latinamerican Finals. These questions were for Brazil, Bolivia, Chile, etc.
My team and I could only finish two questions out of the eleven (not bad I think for the first try).
Here's one we could finish. I'm curious…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I had to make a really small and simple script that would fill a table with string values according to these criteria:
2 characters long
1st character is always numeric (0-9)
2nd character is (0-9) but also includes "X"
Values need to be inserted into a table on a database
The program would execute:
insert…
>>> More