java or php tip for small problem

Posted by agazerboy on Stack Overflow See other posts from Stack Overflow or by agazerboy
Published on 2010-03-08T00:58:55Z Indexed on 2010/03/08 1:01 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

Hi All, I am having a weird mind gogling problem. Sorry in advance, If I confuse you.

I have following data

1 3 5
5 1 2
2 4 8
3 2 9
3 8 4

first column = source 1
second column = source 2
third column = result column

First and second column will can create 3rd column and that 3rd column can be used in 1st or 2nd column to make a new 3rd column value. You can see in first row 5 was 3rd column and in 2nd row it was input to make 2 (3rd column)

I am looking for a solutin that if it pass 3 it return me (1,4,5) rows and same for other digits. Solution tip can be either in java or php because I just want to get data from a old project to make it work !

Thanks !

© Stack Overflow or respective owner

Related posts about java

Related posts about source-code