Need to remove duplicate where source or destination can be switched.
Input:
| source | destination | distance |
| city1 | city2 | 500 |
| city2 | city1 | 500 |
| city3 | city4 | 500 |
| city4 | city3 | 500 |
| city5 | city7 | 700 |
| city7 | city5 | 700 |
Output:
| source | destination | distance |
| city1 | city2 | 500 |
| city3 | city4 | 500 |
| city5 | city7 | 700 |
https://www.facebook.com/datastage4you
https://twitter.com/datagenx
https://plus.google.com/+AtulSingh0/posts
https://groups.google.com/forum/#!forum/datagenx
No comments:
Post a Comment